Added dotenvy to make development a bit easier
This commit is contained in:
parent
46ea8e2cd7
commit
58bb0b312a
7
Cargo.lock
generated
7
Cargo.lock
generated
|
@ -549,6 +549,12 @@ dependencies = [
|
|||
"syn 2.0.100",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dotenvy"
|
||||
version = "0.15.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b"
|
||||
|
||||
[[package]]
|
||||
name = "dyn-clone"
|
||||
version = "1.0.19"
|
||||
|
@ -1484,6 +1490,7 @@ dependencies = [
|
|||
"chrono",
|
||||
"color-eyre",
|
||||
"cynic",
|
||||
"dotenvy",
|
||||
"futures",
|
||||
"git-version",
|
||||
"insta",
|
||||
|
|
|
@ -35,6 +35,7 @@ reqwest = { version = "0.12.14", default-features = false, features = [
|
|||
] }
|
||||
git-version = "0.3.9"
|
||||
color-eyre = "0.6.3"
|
||||
dotenvy = "0.15.7"
|
||||
|
||||
[dev-dependencies]
|
||||
insta = { workspace = true }
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
use dotenvy::dotenv;
|
||||
use futures::StreamExt;
|
||||
use k8s_openapi::api::core::v1::Secret;
|
||||
use kube::runtime::controller::{self, Action};
|
||||
|
@ -37,6 +38,7 @@ async fn log_status<T>(
|
|||
#[tokio::main]
|
||||
async fn main() -> color_eyre::Result<()> {
|
||||
color_eyre::install()?;
|
||||
dotenv().ok();
|
||||
|
||||
let env_filter = EnvFilter::try_from_default_env()
|
||||
.or_else(|_| EnvFilter::try_new("info"))
|
||||
|
|
Loading…
Reference in New Issue
Block a user