diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-07-27 16:36:35 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-07-27 16:36:35 +0200 |
commit | 1b575fc3582d8105aebf372a0470cd8c57d94ec2 (patch) | |
tree | b14a3151131ac86f83cd79b61ea1af55e67c5ccd /src/main.rs | |
parent | 61a6427fe0fdaf894f713cac9cf23418e9708846 (diff) | |
parent | ab04d88ae84c33f3577870c10378f0166adf27bc (diff) |
Merge branch 'connecting-spinner'
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index f32b3a5..4c5ce5d 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)?, + 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()?; @@ -200,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")? @@ -221,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")? } @@ -242,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")? |