mirror of
https://github.com/go-task/task.git
synced 2025-04-23 12:18:57 +02:00
Remove \s for MacOS compatibility, use awk instead
This commit is contained in:
parent
e79026b840
commit
c2f4a57e02
@ -5,7 +5,7 @@ function __list() {
|
|||||||
local -a scripts
|
local -a scripts
|
||||||
|
|
||||||
if [ -f Taskfile.yml ]; then
|
if [ -f Taskfile.yml ]; then
|
||||||
scripts=($(task -l | sed '1d' | sed 's/^* //' | sed 's/\:\s.*//' | sed 's/\(\w\):\(\w\)/\1\\\:\2/'))
|
scripts=($(task -l | sed '1d' | sed 's/^\* //' | awk '{ print $1 }' | sed 's/:$//' | sed 's/:/\\:/'))
|
||||||
_describe 'script' scripts
|
_describe 'script' scripts
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -23,3 +23,4 @@ _arguments \
|
|||||||
'(-w --watch)'{-w,--watch} \
|
'(-w --watch)'{-w,--watch} \
|
||||||
'(- *)'{-h,--help} \
|
'(- *)'{-h,--help} \
|
||||||
'*: :__list' \
|
'*: :__list' \
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user