Skip to content

Instantly share code, notes, and snippets.

@bartlomieju
Created March 8, 2022 22:40
Show Gist options
  • Save bartlomieju/54f37f702c068e8440cdb73a7fb2aac3 to your computer and use it in GitHub Desktop.
Save bartlomieju/54f37f702c068e8440cdb73a7fb2aac3 to your computer and use it in GitHub Desktop.
❯ cargo run -- task
Compiling deno v1.19.2 (/Users/ib/dev/deno/cli)
Finished dev [unoptimized + debuginfo] target(s) in 20.58s
Running `target/debug/deno task`
Available tasks:
- async
sleep 1 && echo 2 &
- boolean_list
echo 1 && false || echo 2
- env_var_substitution
export MY_VAR=my_var ; echo $MY_VAR
- pipeline
echo "console.log('hello')" | deno run -
- seq_list
echo 1 ; echo 2
- shell_var
DENO_HELLO=hello deno eval 'console.log(Deno.env.get("DENO_HELLO"))'
- subshell
echo $(echo 5)
deno on ξ‚  deno_scripts [$!?] via πŸ¦• v1.19.2 via πŸ¦€ v1.59.0 took 22s
❯ cargo run -- task boolean_list
Finished dev [unoptimized + debuginfo] target(s) in 0.18s
Running `target/debug/deno task boolean_list`
1
2
deno on ξ‚  deno_scripts [$!?] via πŸ¦• v1.19.2 via πŸ¦€ v1.59.0
❯ cargo run -- task env_var_substitution
Finished dev [unoptimized + debuginfo] target(s) in 0.17s
Running `target/debug/deno task env_var_substitution`
my_var
deno on ξ‚  deno_scripts [$!?] via πŸ¦• v1.19.2 via πŸ¦€ v1.59.0
❯ cargo run -- task pipeline
Finished dev [unoptimized + debuginfo] target(s) in 0.17s
Running `target/debug/deno task pipeline`
hello
deno on ξ‚  deno_scripts [$!?] via πŸ¦• v1.19.2 via πŸ¦€ v1.59.0 took 2s
❯ cargo run -- task seq_list
Finished dev [unoptimized + debuginfo] target(s) in 0.17s
Running `target/debug/deno task seq_list`
1
2
deno on ξ‚  deno_scripts [$!?] via πŸ¦• v1.19.2 via πŸ¦€ v1.59.0
❯ cargo run -- task shell_var
Finished dev [unoptimized + debuginfo] target(s) in 0.17s
Running `target/debug/deno task shell_var`
hello
deno on ξ‚  deno_scripts [$!?] via πŸ¦• v1.19.2 via πŸ¦€ v1.59.0
❯ cargo run -- task subshell
Finished dev [unoptimized + debuginfo] target(s) in 0.17s
Running `target/debug/deno task subshell`
5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment