gradle-completion icon indicating copy to clipboard operation
gradle-completion copied to clipboard

Default subproject for implicit completion

Open paour opened this issue 6 years ago • 4 comments

The GRADLE_COMPLETION_UNQUALIFIED_TASKS option causes the completion script to go over all subprojects, potentially pulling in too many tasks. Android apps generally always use :app: for the main subproject, could another env var direct the script to autocomplete for that by default?

paour avatar Nov 17 '17 07:11 paour

Yes, I'd be very happy to consider a PR here especially that makes completion better for Android projects. Is that something you'd be willing to submit?

eriwen avatar Nov 17 '17 16:11 eriwen

With my bash skills, you'd have to rewrite whatever I contributed ;-).

What I had in mind was not necessarily Android-specific: the variable could be set to whatever the "usual" default subproject the developer uses.

paour avatar Nov 17 '17 17:11 paour

Okay, thanks for the clarification. That is helpful.

eriwen avatar Nov 17 '17 17:11 eriwen

I think that could be easily handled by: https://github.com/gradle/gradle-completion/issues/88 I've already implemented such task. It can be easily extended. I can share the code. To apply it, this PR needs to be accepted: https://github.com/gradle/gradle-completion/pull/89

mwos-sl avatar Mar 05 '20 14:03 mwos-sl