Skip to content

Commit e90a9d5

Browse files
committed
Allow configuring database URL through an environment variable
1 parent 563cc7d commit e90a9d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

collector/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ rust-version = "1.85.0"
99
[dependencies]
1010
anyhow = { workspace = true }
1111
chrono = { workspace = true, features = ["serde"] }
12-
clap = { workspace = true, features = ["derive"] }
12+
clap = { workspace = true, features = ["derive", "env"] }
1313
env_logger = { workspace = true }
1414
hashbrown = { workspace = true }
1515
log = { workspace = true }

collector/src/bin/collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ struct DbOption {
411411
/// Database output file
412412
// This would be better as a `PathBuf`, but it's used in various ways that
413413
// make that tricky without adjusting several points in the code.
414-
#[arg(long, default_value = "results.db")]
414+
#[arg(long, default_value = "results.db", env = "DATABASE_URL")]
415415
db: String,
416416
}
417417

0 commit comments

Comments
 (0)