-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be7df10
commit 39b2a8a
Showing
3 changed files
with
80 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
dependOnMeToo: | ||
description: another task | ||
# cwd: /some/path/too | ||
command: | ||
- cmd: echo "I can read {{ opt.release }} if 'dependOnMe' task call me" | ||
when: opt.release # if opt.release is true | ||
- cmd: echo "Since passParentOptions is true in 'dependOnMe' task" | ||
when: opt.release # if opt.release is true | ||
passEnv: [ PATH ] # u need to pass env to use ur PATH. | ||
dependOnMe: | ||
description: some task | ||
# cwd: / # try change cwd and see {{ Deno.cwd() }} output! | ||
shell: bash # default shell | ||
dependencies: | ||
- name: dependOnMeToo | ||
passParentOptions: true | ||
command: | ||
- cmd: echo "I can read {{ opt.FOO }}" | ||
shell: zsh # u can use another shell rather than default one | ||
- cmd: echo "Don't run me unless status is 'true'" | ||
when: opt.status == 'true' | ||
- echo "I'm a command too. In {{ Deno.cwd() }}" # deno expressions are supported | ||
taskName: | ||
description: a description | ||
dependencies: | ||
- name: dependOnMe | ||
options: | ||
FOO: bar | ||
status: "{{ opt.status == 1 }}" | ||
release: "{{ opt.release }}" # u can use --release CLI option if passCLI is true | ||
passCLI: true | ||
command: echo "this is main task" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters