summaryrefslogtreecommitdiff
path: root/cli/tools/installer.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2022-02-12 22:13:21 -0500
committerGitHub <noreply@github.com>2022-02-12 22:13:21 -0500
commita5d204d425c69809b82309325ac65113fb876b54 (patch)
treee09a0ba95ce2a11bd06bb233127b3f814d1818cb /cli/tools/installer.rs
parent911ddbc73334316cb100093bdaaaa77752232870 (diff)
feat: permission prompt by default (#13650)
Diffstat (limited to 'cli/tools/installer.rs')
-rw-r--r--cli/tools/installer.rs8
1 files changed, 4 insertions, 4 deletions
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",]
);
}