diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-01-31 00:42:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-30 18:42:39 -0500 |
commit | de5c099b47bd1d2e528f1a10179f130a02f26f86 (patch) | |
tree | 8e3243e64aa6e9b87c690020eade17dfc56d6315 /std/examples | |
parent | 25b13c8917061c569e8f92da124b1b446dc223f0 (diff) |
feat: deno install in Rust (#3806)
//std/installer couldn't be removed due to bug, but it's now deprecated.
Diffstat (limited to 'std/examples')
-rw-r--r-- | std/examples/README.md | 8 | ||||
-rw-r--r-- | std/examples/catj.ts | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/std/examples/README.md b/std/examples/README.md index e2f6b2a08..351c4a6b4 100644 --- a/std/examples/README.md +++ b/std/examples/README.md @@ -16,13 +16,13 @@ deno https://deno.land/std/examples/echo_server.ts --allow-net Or ```shell -deno install echo_server https://deno.land/std/examples/echo_server.ts --allow-net +deno install --allow-net echo_server https://deno.land/std/examples/echo_server.ts ``` ### cat - print file to standard output ```shell -deno install deno_cat https://deno.land/std/examples/cat.ts --allow-read +deno install --allow-read deno_cat https://deno.land/std/examples/cat.ts deno_cat file.txt ``` @@ -31,7 +31,7 @@ deno_cat file.txt A very useful command by Soheil Rashidi ported to Deno. ```shell -deno install catj https://deno.land/std/examples/catj.ts --allow-read +deno install --allow-read catj https://deno.land/std/examples/catj.ts catj example.json catj file1.json file2.json echo example.json | catj - @@ -47,7 +47,7 @@ deno --allow-net=deno.land https://deno.land/std/examples/curl.ts -- https://den ``` export GIST_TOKEN=ABC # Generate at https://github.com/settings/tokens -deno install gist https://deno.land/std/examples/gist.ts --allow-net --allow-env +deno install --allow-net --allow-env gist https://deno.land/std/examples/gist.ts gist --title "Example gist 1" script.ts gist --t "Example gist 2" script2.ts ``` diff --git a/std/examples/catj.ts b/std/examples/catj.ts index ef6fdb02f..7951eeeb0 100644 --- a/std/examples/catj.ts +++ b/std/examples/catj.ts @@ -4,7 +4,7 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. // Install using `deno install` -// $ deno install catj https://deno.land/std/examples/catj.ts --allow-read +// $ deno install --allow-read catj https://deno.land/std/examples/catj.ts /* eslint-disable @typescript-eslint/no-use-before-define */ import { parse } from "../flags/mod.ts"; |