Skip to content

Commit

Permalink
Merge pull request #145 from Integral-Tech/add-default-value
Browse files Browse the repository at this point in the history
Add default values for prompts
  • Loading branch information
ifd3f authored Nov 15, 2024
2 parents c66e17f + fe84dc1 commit 865b9ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/simple_ui/ask_outfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub fn ask_compression(args: &BurnArgs) -> anyhow::Result<CompressionFormat> {
return Ok(cf);
}

if !Confirm::new("Is this okay?").prompt()? {
if !Confirm::new("Is this okay?").with_default(true).prompt()? {
Err(InquireError::OperationCanceled)?;
}
return Ok(cf);
Expand Down
1 change: 1 addition & 0 deletions src/ui/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ pub async fn try_start_burn(
"We don't have permissions on {}. Escalate using sudo?",
args.dest.to_string_lossy()
))
.with_default(true)
.with_help_message(
"We will use the sudo command, which may prompt you for a password.",
)
Expand Down

0 comments on commit 865b9ee

Please sign in to comment.