19 lines
498 B
Rust
19 lines
498 B
Rust
|
use dotenv::dotenv;
|
||
|
use tracing_subscriber::prelude::*;
|
||
|
|
||
|
#[tokio::main]
|
||
|
async fn main() -> eyre::Result<()> {
|
||
|
dotenv()?;
|
||
|
|
||
|
tracing_subscriber::registry()
|
||
|
.with(tracing_subscriber::EnvFilter::new(
|
||
|
std::env::var("RUST_LOG")
|
||
|
.unwrap_or_else(|_| "octopush,octopush_cli,octopush_core,octopush_infra".into()),
|
||
|
))
|
||
|
.with(tracing_subscriber::fmt::layer())
|
||
|
.init();
|
||
|
|
||
|
let cli = octopush_cli::OctopushCli::new();
|
||
|
cli.execute().await
|
||
|
}
|