Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./gradlew completer #2582

Open
avi-cenna opened this issue Nov 5, 2024 · 1 comment
Open

./gradlew completer #2582

avi-cenna opened this issue Nov 5, 2024 · 1 comment
Labels
completer High level tracking issue for completer enhancement New feature or request fund Fundable with polar.sh

Comments

@avi-cenna
Copy link

avi-cenna commented Nov 5, 2024

Command

./gradlew

Description

./gradlew is the Gradle wrapper command. It is typically preferred by Kotlin developers over gradle because the wrapper ensures that everyone is using the same gradle version.

Homepage

https://docs.gradle.org/current/userguide/gradle_wrapper.html

Documentation

https://docs.gradle.org/current/userguide/gradle_wrapper.html

Repository

No response

Complexity

M

Anything else?

I think we could reuse a lot of what's been done for the gradle completer. Please let me know if this is a sensible request, and I might be able to take a crack at implementing this.

Polar

Fund with Polar
@avi-cenna avi-cenna added completer High level tracking issue for completer enhancement New feature or request fund Fundable with polar.sh labels Nov 5, 2024
@avi-cenna avi-cenna changed the title <command> completer ./gradlew completer Nov 5, 2024
@rsteube
Copy link
Member

rsteube commented Nov 5, 2024

Hmm... don't think completion for binaries called with relative path (not using PATH) can be registered.
I'd say there should be a way for this, but probably needs some minor trickery (and likely a command in PATH).

For the moment something in the sense of this should be possible:

# yaml-language-server: $schema=https://carapace.sh/schemas/command.json
name: gradlew
run: "$(./gradlew $@)"
parsing: disabled
completion:
  positionalany: ["$carapace.bridge.CarapaceBin([gradle])"]

edited: removed as this one was wrong

But these still use the gradle command for completion of tasks at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completer High level tracking issue for completer enhancement New feature or request fund Fundable with polar.sh
Projects
None yet
Development

No branches or pull requests

2 participants