summaryrefslogtreecommitdiff
path: root/cli/flags.rs
diff options
context:
space:
mode:
authorDaiki Ihara <sasurau4@gmail.com>2019-05-16 23:39:19 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-05-16 10:39:19 -0400
commit9c9c58c84d1b4eb75003533d5879cf4d79694969 (patch)
tree9b4fc16305b8fbd715c4f9a1561f7c3ba91b34bc /cli/flags.rs
parent6679c4807c1c77893f1d7e78eb0ce3417d3dc6a3 (diff)
Add permission whitelist docs (#2365)
Diffstat (limited to 'cli/flags.rs')
-rw-r--r--cli/flags.rs3
1 files changed, 3 insertions, 0 deletions
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
",