1
0
mirror of https://github.com/go-task/task.git synced 2025-01-14 04:35:50 +02:00

Merge pull request #347 from ronvanderheijden/master

Completion file honors includes
This commit is contained in:
Andrey Nering 2020-06-14 16:38:13 -03:00 committed by GitHub
commit 7dcb3af944
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ function __list() {
local -a scripts
if [ -f Taskfile.yml ]; then
scripts=($(task -l | sed '1d' | sed 's/^\* //' | awk '{ print $1 }' | sed 's/:$//' | sed 's/:/\\:/'))
scripts=($(task -l | sed '1d' | sed 's/^\* //' | awk '{ print $1 }' | sed 's/:$//' | sed 's/:/\\:/g'))
_describe 'script' scripts
fi
}