gradle / gradle-completion

Gradle tab completion for bash and zsh
MIT License
1.02k stars 133 forks source link

#36 group by subprojects #86

Open wosiu opened 4 years ago

wosiu commented 4 years ago

Limit number of results - show only subprojects name instead of all available commands for all subprojects until a whole project name is already typed.

For example - assuming:

then:

1.

./gradlew <tab>

shows:

aTaskInRoot
ab: 
ac:
de:
  1. ./gradlew a<tab>

    shows:

    aTaskInRoot
    ab: 
    ac:
  2. ./gradlew ab:<tab>

    shows:

    :ab:taskA
    :ab:taskB

Partially solves: https://github.com/gradle/gradle-completion/issues/36

Tested on monorepo with tens of subprojects and tasks, both bash and zsh. Without that, a developer is overwhelmed with hundreds od tasks...