From 70f3cd57c19431ebeaacd1c423c0e633698dc7f5 Mon Sep 17 00:00:00 2001 From: Karthik Ganeshram Date: Mon, 26 Feb 2024 14:10:45 -0600 Subject: [PATCH] update plugin install prompt to deal with line wrapping (#2295) Signed-off-by: karthik2804 --- src/commands/plugins.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands/plugins.rs b/src/commands/plugins.rs index fa60433434..0f8d7c1c33 100644 --- a/src/commands/plugins.rs +++ b/src/commands/plugins.rs @@ -644,12 +644,13 @@ fn continue_to_install( } fn prompt_confirm_install(manifest: &PluginManifest, package: &PluginPackage) -> Result { - 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)