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:
Nayeem Rahman 2022-04-18 20:08:30 +01:00 committed by GitHub
parent bf804d3fff
commit 66fbdd2ed4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 44 additions and 10 deletions

View file

@ -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",
});