fix(cli): wait for newlines for confirmations

This commit is contained in:
Chloe Ross
2020-10-21 16:39:05 -07:00
committed by Austin Bonander
parent abb71120f0
commit e816943c60
3 changed files with 31 additions and 7 deletions

View File

@@ -19,6 +19,7 @@ pub async fn drop(uri: &str, confirm: bool) -> anyhow::Result<()> {
"\nAre you sure you want to drop the database at {}?",
style(uri).cyan()
))
.wait_for_newline(true)
.default(false)
.interact()?
{