mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
feat: Add DENO_NO_PROMPT variable (#14209)
This commit adds support for "DENO_NO_PROMPT" env variable, that can be used instead of "--no-prompt" flag to completely disable permission prompts.
This commit is contained in:
parent
bf804d3fff
commit
66fbdd2ed4
9 changed files with 44 additions and 10 deletions
|
@ -288,13 +288,13 @@ itest!(steps_output_within {
|
|||
});
|
||||
|
||||
itest!(no_prompt_by_default {
|
||||
args: "test test/no_prompt_by_default.ts",
|
||||
args: "test --quiet test/no_prompt_by_default.ts",
|
||||
exit_code: 1,
|
||||
output: "test/no_prompt_by_default.out",
|
||||
});
|
||||
|
||||
itest!(no_prompt_with_denied_perms {
|
||||
args: "test --allow-read test/no_prompt_with_denied_perms.ts",
|
||||
args: "test --quiet --allow-read test/no_prompt_with_denied_perms.ts",
|
||||
exit_code: 1,
|
||||
output: "test/no_prompt_with_denied_perms.out",
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue