no warning if no-confirm is true
This commit is contained in:
parent
8f0632aa65
commit
41e910b57e
1 changed files with 3 additions and 8 deletions
|
@ -74,15 +74,10 @@ impl Initializer {
|
||||||
let pool = Database::connect(&self.postgres_url).await?;
|
let pool = Database::connect(&self.postgres_url).await?;
|
||||||
let db_backend = pool.get_database_backend();
|
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 {
|
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())
|
let confirm = Confirm::with_theme(&ColorfulTheme::default())
|
||||||
.with_prompt("This process may take a while. Do you want to continue?")
|
.with_prompt("This process may take a while. Do you want to continue?")
|
||||||
.interact()
|
.interact()
|
||||||
|
|
Loading…
Reference in a new issue