From 118bfcba26999d7241fa0893ca8de7592b9e1d5f Mon Sep 17 00:00:00 2001 From: Jo Franchetti Date: Wed, 17 Apr 2024 11:54:23 +0100 Subject: [PATCH 1/3] Update first_steps.md remove -A from getting started demo --- runtime/manual/getting_started/first_steps.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/manual/getting_started/first_steps.md b/runtime/manual/getting_started/first_steps.md index dc87be06..469d5d1f 100644 --- a/runtime/manual/getting_started/first_steps.md +++ b/runtime/manual/getting_started/first_steps.md @@ -37,7 +37,7 @@ this data type. You can execute the code in this example using the `deno run` command. ```console -deno run -A hello.ts +deno run hello.ts ``` You can From 5d1ca5be4443f135eac0da15d92d646d171e4068 Mon Sep 17 00:00:00 2001 From: Jo Franchetti Date: Wed, 17 Apr 2024 12:20:28 +0100 Subject: [PATCH 2/3] Update first_steps.md --- runtime/manual/getting_started/first_steps.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/manual/getting_started/first_steps.md b/runtime/manual/getting_started/first_steps.md index 469d5d1f..8888ddf2 100644 --- a/runtime/manual/getting_started/first_steps.md +++ b/runtime/manual/getting_started/first_steps.md @@ -58,7 +58,7 @@ const site = await fetch("https://www.deno.com"); console.log(await site.text()); ``` -And then run it. +Because this example is fetching data from across the internet, you will need to allow network permissions. You can give network permissions with the `--allow-net` flag or by using `-A` to allow all permissions. We'll look at permissions and security in more depth later on. Run the example with: ```console deno run -A hello.ts @@ -117,7 +117,7 @@ Without any permission flags passed in, you'll see security prompts that look something like this: ```console -kevin@kevin-deno scratchpad % deno run index.ts +$ deno run index.ts ✅ Granted net access to "www.deno.com". ┌ ⚠️ Deno requests net access to "deno.com". ├ Requested by `fetch()` API. From ed710f4ef848f6a91cbec2cb6c2c0de82ccf6d63 Mon Sep 17 00:00:00 2001 From: Jo Franchetti Date: Wed, 17 Apr 2024 12:21:37 +0100 Subject: [PATCH 3/3] Update first_steps.md sorrry kevin --- runtime/manual/getting_started/first_steps.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/manual/getting_started/first_steps.md b/runtime/manual/getting_started/first_steps.md index 8888ddf2..fcf07f99 100644 --- a/runtime/manual/getting_started/first_steps.md +++ b/runtime/manual/getting_started/first_steps.md @@ -243,7 +243,7 @@ deno test person_test.ts The output should look something like this: ```bash -kevin@kevin-deno scratchpad % deno test person_test.ts +$ deno test person_test.ts Check file:///Users/kevin/dev/denoland/scratchpad/person_test.ts running 1 test from ./person_test.ts sayHello function ... ok (4ms)