Skip to content

Conversation

wosiu
Copy link
Contributor

@wosiu wosiu commented Feb 26, 2020

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:

  • root project has task aTaskInRoot
  • 3 subprojects: :ab, :ac and :de`
  • each subproject has tasks: taskA, taskB

then:

./gradlew <tab>

shows:

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

shows:

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

shows:

:ab:taskA
:ab:taskB

Partially solves: #36

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

@mwos-sl mwos-sl force-pushed the wosiu-group-modules branch from 9d1c1c3 to d8a767d Compare February 27, 2020 13:38
@mwos-sl mwos-sl force-pushed the wosiu-group-modules branch from d8a767d to 7cbc212 Compare March 26, 2020 19:42
@wosiu wosiu marked this pull request as ready for review March 26, 2020 19:43
Signed-off-by: Michał Woś <[email protected]>

fix completion when single subproject is left

Fix completion when starting with ':'

remove todo

cosmetics

trim to subprojects - ported to zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants