From 9c9c58c84d1b4eb75003533d5879cf4d79694969 Mon Sep 17 00:00:00 2001 From: Daiki Ihara Date: Thu, 16 May 2019 23:39:19 +0900 Subject: Add permission whitelist docs (#2365) --- cli/flags.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cli') diff --git a/cli/flags.rs b/cli/flags.rs index 171c05ad0..288e20b24 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -191,6 +191,9 @@ ability to spawn subprocesses. # run program with permission to read from disk and listen to network deno run --allow-net --allow-read https://deno.land/std/http/file_server.ts + # run program with permission to read whitelist files from disk and listen to nework + deno run --allow-net --allow-read=$(pwd) https://deno.land/std/http/file_server.ts + # run program with all permissions deno run -A https://deno.land/std/http/file_server.ts ", -- cgit v1.2.3