From e7b7129b7a92b7500ded88f8f5baa25a7f59e56e Mon Sep 17 00:00:00 2001 From: crowlKats <13135287+crowlKats@users.noreply.github.com> Date: Sat, 10 Apr 2021 00:12:00 +0200 Subject: feat(permissions): allow run permission to take values (#9833) This commit adds allowlist support to `--allow-run` flag. Additionally `Deno.permissions.query()` allows to query for specific programs within allowlist. --- cli/dts/lib.deno.ns.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cli/dts/lib.deno.ns.d.ts') diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index 4934c642d..09f39d6b8 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -1967,10 +1967,10 @@ declare namespace Deno { * * If `stdout` and/or `stderr` were set to `"piped"`, they must be closed * manually before the process can exit. - * + * * To run process to completion and collect output from both `stdout` and * `stderr` use: - * + * * ```ts * const p = Deno.run({ cmd, stderr: 'piped', stdout: 'piped' }); * const [status, stdout, stderr] = await Promise.all([ @@ -2135,6 +2135,7 @@ declare namespace Deno { export interface RunPermissionDescriptor { name: "run"; + command?: string; } export interface ReadPermissionDescriptor { -- cgit v1.2.3