Skip to content

Commit 5735a02

Browse files
committed
added fish completions
1 parent 7652d78 commit 5735a02

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

completion/fish/task.fish

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
function __task_get_tasks --description "Prints all available tasks with their description"
2+
task -l | sed '1d' | awk '{ $1=""; print $0 }' | sed 's/: /\t/' | string trim
3+
end
4+
5+
complete -c task -d 'Runs the specified task(s). Falls back to the "default" task if no task name was specified, or lists all tasks if an unknown task name was
6+
specified.' -xa "(__task_get_tasks)"
7+
8+
9+
complete -c task -s c -l color -d 'colored output (default true)'
10+
complete -c task -s d -l dir -d 'sets directory of execution'
11+
complete -c task -l dry -d 'compiles and prints tasks in the order that they would be run, without executing them'
12+
complete -c task -s f -l force -d 'forces execution even when the task is up-to-date'
13+
complete -c task -s h -l help -d 'shows Task usage'
14+
complete -c task -s i -l init -d 'creates a new Taskfile.yml in the current folder'
15+
complete -c task -s l -l list -d 'lists tasks with description of current Taskfile'
16+
complete -c task -s o -l output -d 'sets output style: [interleaved|group|prefixed]' -xa "interleaved group prefixed"
17+
complete -c task -s p -l parallel -d 'executes tasks provided on command line in parallel'
18+
complete -c task -s s -l silent -d 'disables echoing'
19+
complete -c task -l status -d 'exits with non-zero exit code if any of the given tasks is not up-to-date'
20+
complete -c task -l summary -d 'show summary about a task'
21+
complete -c task -s t -l taskfile -d 'choose which Taskfile to run. Defaults to "Taskfile.yml"'
22+
complete -c task -s v -l verbose -d 'enables verbose mode'
23+
complete -c task -l version -d 'show Task version'
24+
complete -c task -s w -l watch -d 'enables watch of the given task'

0 commit comments

Comments
 (0)