Skip to content

Commit

Permalink
update plugin install prompt to deal with line wrapping
Browse files Browse the repository at this point in the history
Signed-off-by: karthik2804 <karthik.ganeshram@fermyon.com>
  • Loading branch information
karthik2804 committed Feb 26, 2024
1 parent 2ea26c5 commit 42df46c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/commands/plugins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -644,12 +644,13 @@ fn continue_to_install(
}

fn prompt_confirm_install(manifest: &PluginManifest, package: &PluginPackage) -> Result<bool> {
let prompt = format!(
"Are you sure you want to install plugin '{}' with license {} from {}?",
println!(
"You are trying to install the `{}` plugin with {} license from {} ",
manifest.name(),
manifest.license(),
package.url()
);
let prompt = "Are you sure you want to continue?".to_string();
let install = dialoguer::Confirm::new()
.with_prompt(prompt)
.default(false)
Expand Down

0 comments on commit 42df46c

Please sign in to comment.