no warning if no-confirm is true

This commit is contained in:
Namekuji 2023-09-26 18:15:49 -04:00
parent 8f0632aa65
commit 41e910b57e
No known key found for this signature in database
GPG key ID: 1D62332C07FBA532

View file

@ -74,15 +74,10 @@ impl Initializer {
let pool = Database::connect(&self.postgres_url).await?;
let db_backend = pool.get_database_backend();
println!(
"{}",
dialoguer::console::style(
"This is irreversible! Please backup your PostgreSQL database before you proceed."
)
.bold()
);
if !self.no_confirm {
println!("{}",
dialoguer::console::style("This is irreversible! Please backup your PostgreSQL database before you proceed.").bold()
);
let confirm = Confirm::with_theme(&ColorfulTheme::default())
.with_prompt("This process may take a while. Do you want to continue?")
.interact()