adnovum/gng ? reverse-engineered prompt
Reverse engineered prompt
Build me a small command line tool called gw that I can run instead of gradle or ./gradlew.
I want it to automatically find the nearest gradlew in the current folder or parent folders, then run that wrapper with whatever arguments I pass in. If I am already in a Gradle project, it should just work, so I do not have to keep typing ./gradlew, ../gradlew, or ../../gradlew. If there is no wrapper nearby, show a clear message that tells me what is missing.
Make it easy to install on a Linux or Unix style system with a simple install script, and include a clean way to alias gradle to gw so I can avoid using a global Gradle install. Keep it lightweight and practical, since the whole point is to make Gradle projects easier to use without depending on a system wide Gradle version. If you need to check current best practices for shell scripting, look them up online.
Are you gonna build this?
make sure you review the code using coderabbit