summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index 5ae443b..38460a6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -62,6 +62,7 @@ use logcrate::error;
use rand as _; // Required to make lints happy
use aquamarine as _; // doc-helper crate
use funty as _; // doc-helper crate
+use zeroize as _; // Required to make lints happy
mod cli;
mod commands;
@@ -151,9 +152,9 @@ async fn main() -> Result<()> {
let db_connection_config = crate::db::DbConnectionConfig::parse(&config, &cli)?;
match cli.subcommand() {
Some(("generate-completions", matches)) => generate_completions(matches),
- Some(("db", matches)) => crate::commands::db(db_connection_config, &config, matches)?,
+ Some(("db", matches)) => crate::commands::db(db_connection_config, &config, matches, progressbars)?,
Some(("build", matches)) => {
- let conn = db_connection_config.establish_connection()?;
+ let conn = db_connection_config.establish_connection(&progressbars)?;
let repo = load_repo()?;
@@ -199,7 +200,7 @@ async fn main() -> Result<()> {
Some(("find-artifact", matches)) => {
let repo = load_repo()?;
- let conn = db_connection_config.establish_connection()?;
+ let conn = db_connection_config.establish_connection(&progressbars)?;
crate::commands::find_artifact(matches, &config, progressbars, repo, conn)
.await
.context("find-artifact command failed")?
@@ -220,7 +221,7 @@ async fn main() -> Result<()> {
}
Some(("release", matches)) => {
- crate::commands::release(db_connection_config, &config, matches)
+ crate::commands::release(db_connection_config, &config, matches, progressbars)
.await
.context("release command failed")?
}
@@ -241,7 +242,7 @@ async fn main() -> Result<()> {
Some(("metrics", _)) => {
let repo = load_repo()?;
- let conn = db_connection_config.establish_connection()?;
+ let conn = db_connection_config.establish_connection(&progressbars)?;
crate::commands::metrics(&repo_path, &config, repo, conn)
.await
.context("metrics command failed")?