gradle plugin: also list tasks in subprojects
This commit is contained in:
parent
64e1252bd5
commit
950bbccd60
@ -80,7 +80,7 @@ _gradle_tasks () {
|
|||||||
if [ in_gradle ]; then
|
if [ in_gradle ]; then
|
||||||
_gradle_arguments
|
_gradle_arguments
|
||||||
if _gradle_does_task_list_need_generating; then
|
if _gradle_does_task_list_need_generating; then
|
||||||
gradle tasks --all | grep "^[ ]*[a-zA-Z0-9:]*\ -\ " | sed "s/ - .*$//" | sed "s/[\ ]*//" > .gradletasknamecache
|
gradle tasks --all | awk '/[a-zA-Z0-9:-]* - / {print $1}' > .gradletasknamecache
|
||||||
fi
|
fi
|
||||||
compadd -X "==== Gradle Tasks ====" `cat .gradletasknamecache`
|
compadd -X "==== Gradle Tasks ====" `cat .gradletasknamecache`
|
||||||
fi
|
fi
|
||||||
@ -90,7 +90,7 @@ _gradlew_tasks () {
|
|||||||
if [ in_gradle ]; then
|
if [ in_gradle ]; then
|
||||||
_gradle_arguments
|
_gradle_arguments
|
||||||
if _gradle_does_task_list_need_generating; then
|
if _gradle_does_task_list_need_generating; then
|
||||||
./gradlew tasks --all | grep "^[ ]*[a-zA-Z0-9:]*\ -\ " | sed "s/ - .*$//" | sed "s/[\ ]*//" > .gradletasknamecache
|
./gradlew tasks --all | awk '/[a-zA-Z0-9:-]* - / {print $1}' > .gradletasknamecache
|
||||||
fi
|
fi
|
||||||
compadd -X "==== Gradlew Tasks ====" `cat .gradletasknamecache`
|
compadd -X "==== Gradlew Tasks ====" `cat .gradletasknamecache`
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user