mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
c18e0d1d37
This commit adds new "A" option to the interactive permission prompt, that will allow all subsequent permissions for given group (domain). Ie. when querying for permissions to access eg. env variables responding with "A" will allow access to all environmental variables. This works for all permission domains and should make permission prompts more ergonomic for users.
20 lines
875 B
TypeScript
20 lines
875 B
TypeScript
Deno.permissions.requestSync({ name: "run", command: "FOO" });
|
|
Deno.permissions.requestSync({ name: "run", command: "BAR" });
|
|
|
|
Deno.permissions.requestSync({ name: "read", path: "FOO" });
|
|
Deno.permissions.requestSync({ name: "read", path: "BAR" });
|
|
|
|
Deno.permissions.requestSync({ name: "write", path: "FOO" });
|
|
Deno.permissions.requestSync({ name: "write", path: "BAR" });
|
|
|
|
Deno.permissions.requestSync({ name: "net", host: "FOO" });
|
|
Deno.permissions.requestSync({ name: "net", host: "BAR" });
|
|
|
|
Deno.permissions.requestSync({ name: "env", variable: "FOO" });
|
|
Deno.permissions.requestSync({ name: "env", variable: "BAR" });
|
|
|
|
Deno.permissions.requestSync({ name: "sys", kind: "loadavg" });
|
|
Deno.permissions.requestSync({ name: "sys", kind: "hostname" });
|
|
|
|
Deno.permissions.requestSync({ name: "ffi", path: "FOO" });
|
|
Deno.permissions.requestSync({ name: "ffi", path: "BAR" });
|