1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-18 10:22:00 +00:00
ohmyzsh/plugins/gradle
Wenbing Li e61228282a
gradle: fix command option name in completion (#6586)
It should be `--rerun-tasks`, the original one miss a 's' at the end.
See https://docs.gradle.org/current/userguide/command_line_interface.html
2020-02-28 20:35:19 +01:00
..
_gradle Improve gradle plugin task parsing (#5230) 2016-09-15 12:16:46 +02:00
_gradlew Improve gradle plugin task parsing (#5230) 2016-09-15 12:16:46 +02:00
gradle.plugin.zsh gradle: fix command option name in completion (#6586) 2020-02-28 20:35:19 +01:00
README.md gradle: add README (#7211) 2018-10-04 13:30:33 +02:00

Gradle Plugin

This plugin adds completions and aliases for Gradle.

To use it, add gradle to the plugins array in your zshrc file:

plugins=(... gradle)

Usage

This plugin creates an alias gradle which is used to determine whether the current working directory has a gradlew file. If gradlew is present it will be used otherwise gradle is used directly. Gradle tasks can be executed directly without regard for whether it is gradle or gradlew

Examples:

gradle test
gradle build

Completion

The completion provided for this plugin caches the parsed tasks into a file named .gradletasknamecache in the current working directory, so you might want to add that to your .gitignore file so that it's not accidentally committed.