From a1b37f177be848ce3c3248b6b835f8999e36afff Mon Sep 17 00:00:00 2001 From: Tomofumi Chiba Date: Thu, 11 Jun 2020 09:24:41 +0900 Subject: [PATCH] fixed double prompt in manual (#6230) --- docs/examples/file_server.md | 2 +- docs/getting_started/permissions.md | 6 +++--- docs/standard_library.md | 2 +- 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 9fbe27bd37..b591687647 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 317d850463..7b1eac6934 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 d2537fbc5e..67e072768e 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 6badd6436b..e03392b283 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