-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Add --allow-all flag #1482
Add --allow-all flag #1482
Conversation
Cool no-nonsense name.... You're not wondering if people might get confused and expect it to actually sudo? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I'm hesitant about the naming... Might be confusing to some new programmers, especially when we have sudo deno --sudo ...
src/flags.rs
Outdated
@@ -26,6 +26,7 @@ pub struct DenoFlags { | |||
pub allow_net: bool, | |||
pub allow_env: bool, | |||
pub allow_run: bool, | |||
pub sudo: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't really need to add this to DenoFlags
?...
Hm - they might... |
|
|
--unsafe ? |
|
I think |
I feel we could reserve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
--yolo 😂 |
0ee3af1
to
aae306d
Compare
@@ -127,6 +133,7 @@ pub fn set_flags( | |||
opts.optflag("", "allow-net", "Allow network access."); | |||
opts.optflag("", "allow-env", "Allow environment access."); | |||
opts.optflag("", "allow-run", "Allow running subprocesses."); | |||
opts.optflag("A", "allow-all", "Allow all permissions"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OCD alert, missing a dot at the end of the line!
No description provided.