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: Add hint to permission prompt to display allow flag #13695

Merged
merged 3 commits into from
Feb 16, 2022

Conversation

ry
Copy link
Member

@ry ry commented Feb 16, 2022

No description provided.

@ry ry requested a review from bartlomieju as a code owner February 16, 2022 20:54
@crowlKats crowlKats self-requested a review February 16, 2022 21:01
Copy link
Member

@crowlKats crowlKats left a comment

Choose a reason for hiding this comment

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

Please use the self.name property instead of hard-coding the names again.

runtime/permissions.rs Outdated Show resolved Hide resolved
@bartlomieju bartlomieju changed the title Add hint to permission prompt to display allow flag feat: Add hint to permission prompt to display allow flag Feb 16, 2022
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -2197,9 +2197,9 @@ mod permissions {
let args = "run --quiet 061_permissions_request.ts";
use util::PtyData::*;
util::test_pty2(args, vec![
Output("⚠️ ️Deno requests read access to \"foo\". Allow? [y/n (y = yes allow, n = no deny)] "),
Output("⚠️ ️Deno requests read access to \"foo\". Run again with --allow-read to bypass this prompt.\r\n Allow? [y/n (y = yes allow, n = no deny)] "),
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand why some of these have a trailing space and others don't considering a trailing space was added to the output. I guess there's some trimming on the output being done in the comparison.

@bartlomieju bartlomieju merged commit 57f4b0e into denoland:main Feb 16, 2022
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.

None yet

4 participants