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 <[email protected]>
  • Loading branch information
karthik2804 committed Feb 26, 2024
1 parent 2ea26c5 commit a6170c0
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 = format!("Are you sure you want to continue?");
let install = dialoguer::Confirm::new()
.with_prompt(prompt)
.default(false)
Expand Down

0 comments on commit a6170c0

Please sign in to comment.