mirror of
https://github.com/arabianq/lyrics_fetcher.git
synced 2026-04-27 22:11:22 +00:00
add .env loading
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
/target
|
/target
|
||||||
|
.env
|
||||||
Generated
+7
@@ -387,6 +387,12 @@ dependencies = [
|
|||||||
"syn",
|
"syn",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "dotenv"
|
||||||
|
version = "0.15.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "dtoa"
|
name = "dtoa"
|
||||||
version = "1.0.11"
|
version = "1.0.11"
|
||||||
@@ -998,6 +1004,7 @@ dependencies = [
|
|||||||
"async-trait",
|
"async-trait",
|
||||||
"async-walkdir",
|
"async-walkdir",
|
||||||
"clap",
|
"clap",
|
||||||
|
"dotenv",
|
||||||
"futures",
|
"futures",
|
||||||
"id3",
|
"id3",
|
||||||
"itertools",
|
"itertools",
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ async-trait = "0.1.89"
|
|||||||
clap = { version = "4.6.0", features = ["derive"] }
|
clap = { version = "4.6.0", features = ["derive"] }
|
||||||
anyhow = "1.0.102"
|
anyhow = "1.0.102"
|
||||||
itertools = "0.14.0"
|
itertools = "0.14.0"
|
||||||
|
dotenv = "0.15.0"
|
||||||
|
|
||||||
id3 = { version = "1.16.4", default-features = false, features = ["tokio"] }
|
id3 = { version = "1.16.4", default-features = false, features = ["tokio"] }
|
||||||
reqwest = { version = "0.13.2", default-features = false, features = [
|
reqwest = { version = "0.13.2", default-features = false, features = [
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ struct Args {
|
|||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> Result<()> {
|
async fn main() -> Result<()> {
|
||||||
|
dotenv::dotenv()?;
|
||||||
|
|
||||||
let args = Args::parse();
|
let args = Args::parse();
|
||||||
|
|
||||||
let music_dir_path = args.music_dir_path;
|
let music_dir_path = args.music_dir_path;
|
||||||
|
|||||||
Reference in New Issue
Block a user