Skip to content

Commit

Permalink
Evolve examples to highlight features
Browse files Browse the repository at this point in the history
  • Loading branch information
sourishkrout committed Nov 11, 2022
1 parent 0629512 commit 05a2507
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This markdown file contains some custom examples to test the execution within a

## Shell Executions

```sh
```
echo "Hello World!"
```
## More Shell
Expand Down Expand Up @@ -45,7 +45,10 @@ node ./scripts/stdin.js
You can also run TypeScript or JavaScript:

```js
document.body.innerHTML += 'script attached!'
function attach() {
document.body.innerHTML += 'script attached!'
}
attach()
```

## Environment Variables
Expand All @@ -64,7 +67,7 @@ echo "DENO_ACCESS_TOKEN: $DENO_ACCESS_TOKEN"

Supports multiple lines where the export is just somewhere in between:

```sh
```
echo "Auth token for service foo"
export SERVICE_FOO_TOKEN=foobar
echo "Auth token for service bar"
Expand Down Expand Up @@ -99,7 +102,7 @@ echo "LICENSE: $LICENSE"

Support multiline exports:

```
```sh
export PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEA04up8hoqzS1+
...
Expand All @@ -126,5 +129,6 @@ openssl rand -base64 32
These are shown as simple markdown, e.g:

```py { readonly=true }
def hello():
print("Hello World")
```

0 comments on commit 05a2507

Please sign in to comment.