mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
Merge pull request #3813 from ziegs/fix_gradle_tasks
Fixes gradle autocomplete so it includes subproject tasks
This commit is contained in:
commit
3a57076d93
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,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 | grep "^[ ]*[a-zA-Z0-9:]*\ -\ " | sed "s/ - .*$//" | sed "s/[\ ]*//" > .gradletasknamecache
|
||||||
fi
|
fi
|
||||||
compadd -X "==== Gradle Tasks ====" `cat .gradletasknamecache`
|
compadd -X "==== Gradle Tasks ====" `cat .gradletasknamecache`
|
||||||
fi
|
fi
|
||||||
|
@ -82,7 +82,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 | grep "^[ ]*[a-zA-Z0-9:]*\ -\ " | sed "s/ - .*$//" | sed "s/[\ ]*//" > .gradletasknamecache
|
||||||
fi
|
fi
|
||||||
compadd -X "==== Gradlew Tasks ====" `cat .gradletasknamecache`
|
compadd -X "==== Gradlew Tasks ====" `cat .gradletasknamecache`
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue