From a5d204d425c69809b82309325ac65113fb876b54 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 12 Feb 2022 22:13:21 -0500 Subject: feat: permission prompt by default (#13650) --- cli/tools/installer.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cli/tools/installer.rs') diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs index e21e4954a..4cbbb7cf5 100644 --- a/cli/tools/installer.rs +++ b/cli/tools/installer.rs @@ -328,8 +328,8 @@ fn resolve_shim_data( executable_args.push("--cached-only".to_string()); } - if flags.prompt { - executable_args.push("--prompt".to_string()); + if flags.no_prompt { + executable_args.push("--no-prompt".to_string()); } if !flags.v8_flags.is_empty() { @@ -714,7 +714,7 @@ mod tests { fn install_prompt() { let shim_data = resolve_shim_data( &Flags { - prompt: true, + no_prompt: true, ..Flags::default() }, &InstallFlags { @@ -729,7 +729,7 @@ mod tests { assert_eq!( shim_data.args, - vec!["run", "--prompt", "http://localhost:4545/echo_server.ts",] + vec!["run", "--no-prompt", "http://localhost:4545/echo_server.ts",] ); } -- cgit v1.2.3