Rewrite rust (#38)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

Co-authored-by: kjuulh <contact@kjuulh.io>
Reviewed-on: https://git.front.kjuulh.io/kjuulh/octopush/pulls/38
This commit is contained in:
2022-11-27 11:21:35 +00:00
parent 0d6e8bc4a0
commit 991861db99
445 changed files with 53358 additions and 2568 deletions

18
src/main.rs Normal file
View File

@@ -0,0 +1,18 @@
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
}