Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support short flags for permissions #24883

Merged
merged 2 commits into from
Aug 8, 2024
Merged

Conversation

ry
Copy link
Member

@ry ry commented Aug 5, 2024

This commit adds short CLI flags for following permission flags:

  • "-R" for "--allow-read"
  • "-W" for "--allow-write"
  • "-E" for "--allow-env"
  • "-N" for "--allow-net"
  • "-S" for "--allow-sys"

@bartlomieju bartlomieju merged commit 1d5927a into main Aug 8, 2024
17 checks passed
@bartlomieju bartlomieju deleted the short-allow-flags branch August 8, 2024 13:46
@@ -5685,6 +5690,26 @@ mod tests {
);
}

#[test]
fn short_permission_flags() {
let r = flags_from_vec(svec!["deno", "run", "-RW", "gist.ts"]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn’t others be tested as well?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, do you want to open a PR that exercises all of them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants