Skip to content

Add ignore option to read/env prompt #31762

@JOTSR

Description

@JOTSR

Description

In deno 2.6 the new --ignore-read and --ignore-env where added but the interractive no permission prompt do not allow to ignore a request. Adding a new [i]gnore and [I]gnore all to env and read permissions could be great.

Example

Before

 deno run npm:terminal-link-cli --help
┏ ⚠  Deno requests env access to "YARGS_MIN_NODE_VERSION".                                              
┠─ To see a stack trace for this prompt, set the DENO_TRACE_PERMISSIONS environmental variable.         
┠─ Learn more at: https://docs.deno.com/go/--allow-env
┠─ Run again with --allow-env to bypass this prompt.
┗ Allow? [y/n/A] (y = yes, allow; n = no, deny; A = allow all env permissions) >

After

 deno run npm:terminal-link-cli --help
┏ ⚠  Deno requests env access to "YARGS_MIN_NODE_VERSION".                                              
┠─ To see a stack trace for this prompt, set the DENO_TRACE_PERMISSIONS environmental variable.         
┠─ Learn more at: https://docs.deno.com/go/--allow-env
┠─ Run again with --allow-env to bypass this prompt.
┗ Allow? [y/n/A/i/I] (y = yes, allow; n = no, deny; A = allow all; i = ignore; I = ignore all env permissions) >

Metadata

Metadata

Assignees

No one assigned

    Labels

    permissionsrelated to --allow-* flags

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions