From de5c099b47bd1d2e528f1a10179f130a02f26f86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 31 Jan 2020 00:42:39 +0100 Subject: feat: deno install in Rust (#3806) //std/installer couldn't be removed due to bug, but it's now deprecated. --- std/examples/README.md | 8 ++++---- std/examples/catj.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'std/examples') 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"; -- cgit v1.2.3