Last active
September 4, 2022 15:10
-
-
Save toruuetani/ee687937f3f7ec066a892f79db4348dd to your computer and use it in GitHub Desktop.
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
tasks: | |
default: | |
vars: | |
LINE: | |
sh: task -l ^| peco | |
COLON: | |
sh: tmp="{{.LINE}}"; list=(${tmp/,/ }); echo ${list[1]} | |
TASK: | |
sh: tmp="{{.LINE}}"; list=(${tmp/,/ }); echo ${list[1]:0:-1} | |
DUMMY: | |
sh: cmd /c "echo {{.TASK}}; cls" | |
cmds: | |
- task {{.TASK}} | |
preconditions: | |
- sh: '[[ "{{.COLON}}" == "{{.TASK}}:" ]]' | |
msg: タスクを選択してください |
Author
toruuetani
commented
Sep 4, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment