feature/fix-required-args (#40)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Co-authored-by: kjuulh <contact@kjuulh.io> Reviewed-on: https://git.front.kjuulh.io/kjuulh/octopush/pulls/40
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
use dotenv::dotenv;
|
||||
use eyre::Context;
|
||||
use tracing_subscriber::prelude::*;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> eyre::Result<()> {
|
||||
dotenv()?;
|
||||
if let Err(e) = dotenv().context(".env file not found") {
|
||||
tracing::info!(
|
||||
error = e.to_string(),
|
||||
"no .env file specified, command args are required"
|
||||
);
|
||||
}
|
||||
|
||||
tracing_subscriber::registry()
|
||||
.with(tracing_subscriber::EnvFilter::new(
|
||||
|
Reference in New Issue
Block a user