diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs index 18dee07..3ddce14 100644 --- a/src/main.rs +++ b/src/main.rs @@ -152,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, progressbars)?, + Some(("db", matches)) => crate::commands::db(db_connection_config, &config, matches)?, Some(("build", matches)) => { - let conn = db_connection_config.establish_connection(&progressbars)?; + let conn = db_connection_config.establish_connection()?; let repo = load_repo()?; @@ -200,7 +200,7 @@ async fn main() -> Result<()> { Some(("find-artifact", matches)) => { let repo = load_repo()?; - let conn = db_connection_config.establish_connection(&progressbars)?; + let conn = db_connection_config.establish_connection()?; crate::commands::find_artifact(matches, &config, progressbars, repo, conn) .await .context("find-artifact command failed")? @@ -221,7 +221,7 @@ async fn main() -> Result<()> { } Some(("release", matches)) => { - crate::commands::release(db_connection_config, &config, matches, progressbars) + crate::commands::release(db_connection_config, &config, matches) .await .context("release command failed")? } @@ -242,8 +242,8 @@ async fn main() -> Result<()> { Some(("metrics", _)) => { let repo = load_repo()?; - let conn = db_connection_config.establish_connection(&progressbars)?; - crate::commands::metrics(repo_path, &config, repo, conn) + let conn = db_connection_config.establish_connection()?; + crate::commands::metrics(&repo_path, &config, repo, conn) .await .context("metrics command failed")? } |