diff options
-rw-r--r-- | docs/examples/file_server.md | 2 | ||||
-rw-r--r-- | docs/getting_started/permissions.md | 6 | ||||
-rw-r--r-- | docs/standard_library.md | 2 | ||||
-rw-r--r-- | docs/tools/script_installer.md | 8 |
4 files changed, 9 insertions, 9 deletions
diff --git a/docs/examples/file_server.md b/docs/examples/file_server.md index 9fbe27bd3..b59168764 100644 --- a/docs/examples/file_server.md +++ b/docs/examples/file_server.md @@ -18,5 +18,5 @@ HTTP server listening on http://0.0.0.0:4500/ And if you ever want to upgrade to the latest published version: ```shell -$ file_server --reload +file_server --reload ``` diff --git a/docs/getting_started/permissions.md b/docs/getting_started/permissions.md index 317d85046..7b1eac693 100644 --- a/docs/getting_started/permissions.md +++ b/docs/getting_started/permissions.md @@ -57,7 +57,7 @@ error: Uncaught PermissionDenied: read access to "/etc/passwd", run again with t Try it out again with the correct permissions by whitelisting `/etc` instead: ```shell -$ deno run --allow-read=/etc https://deno.land/std/examples/cat.ts /etc/passwd +deno run --allow-read=/etc https://deno.land/std/examples/cat.ts /etc/passwd ``` `--allow-write` works the same as `--allow-read`. @@ -73,7 +73,7 @@ const result = await fetch("https://deno.land/"); This is an example on how to whitelist hosts/urls: ```shell -$ deno run --allow-net=github.com,deno.land fetch.ts +deno run --allow-net=github.com,deno.land fetch.ts ``` If `fetch.ts` tries to establish network connections to any other domain, the @@ -82,5 +82,5 @@ process will fail. Allow net calls to any host/url: ```shell -$ deno run --allow-net fetch.ts +deno run --allow-net fetch.ts ``` diff --git a/docs/standard_library.md b/docs/standard_library.md index d2537fbc5..67e072768 100644 --- a/docs/standard_library.md +++ b/docs/standard_library.md @@ -48,7 +48,7 @@ TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'. Solution to that problem requires adding `--unstable` flag: ```shell -$ deno run --allow-read --allow-write --unstable main.ts +deno run --allow-read --allow-write --unstable main.ts ``` To make sure that API producing error is unstable check diff --git a/docs/tools/script_installer.md b/docs/tools/script_installer.md index 6badd6436..e03392b28 100644 --- a/docs/tools/script_installer.md +++ b/docs/tools/script_installer.md @@ -22,7 +22,7 @@ $ deno install --allow-net --allow-read https://deno.land/std/http/file_server.t To change the executable name, use `-n`/`--name`: ```shell - deno install --allow-net --allow-read -n serve https://deno.land/std/http/file_server.ts +deno install --allow-net --allow-read -n serve https://deno.land/std/http/file_server.ts ``` The executable name is inferred by default: @@ -36,7 +36,7 @@ The executable name is inferred by default: To change the installation root, use `--root`: ```shell -$ deno install --allow-net --allow-read --root /usr/local https://deno.land/std/http/file_server.ts +deno install --allow-net --allow-read --root /usr/local https://deno.land/std/http/file_server.ts ``` The installation root is determined, in order of precedence: @@ -48,14 +48,14 @@ The installation root is determined, in order of precedence: These must be added to the path manually if required. ```shell -$ echo 'export PATH="$HOME/.deno/bin:$PATH"' >> ~/.bashrc +echo 'export PATH="$HOME/.deno/bin:$PATH"' >> ~/.bashrc ``` You must specify permissions that will be used to run the script at installation time. ```shell -$ deno install --allow-net --allow-read https://deno.land/std/http/file_server.ts 8080 +deno install --allow-net --allow-read https://deno.land/std/http/file_server.ts 8080 ``` The above command creates an executable called `file_server` that runs with |