mirror of
https://github.com/go-task/task.git
synced 2026-07-07 14:09:11 +00:00
Enable fish tab completion for tasks without description
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
function __task_get_tasks --description "Prints all available tasks with their description"
|
function __task_get_tasks --description "Prints all available tasks with their description"
|
||||||
set -l output (task -l 2>&1 < /dev/null | sed '1d' | awk '{ $1=""; print $0 }' | sed 's/:\ /\t/g' | string trim | string split0)
|
set -l output (task --list-all | sed '1d; s/\* \(.*\):\s*\(.*\)/\1\t\2/' | string split0)
|
||||||
if test $output
|
if test $output
|
||||||
echo $output
|
echo $output
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user