1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-27 06:41:58 +00:00
Commit graph

22 commits

Author SHA1 Message Date
Konstantin Gribov
999d22bb0e
gradle: force --console plain for tasks cache generation (#8731)
Fixes #8730
2020-07-01 15:20:41 +02:00
Marc Cornellà
610b2529d2 Clean up plugin READMEs and a few plugins
- fasd
- history
- mercurial
- pylint
- repo
- yii2
2020-03-11 19:57:46 +01:00
Marc Cornellà
e1a8d7c977 gradle: use upstream completion and fix some other stuff
Fixes #6239
Fixes #7946
Fixes #8017
Fixes #8717
Closes #7987
Closes #8718
2020-03-09 18:43:20 +01:00
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
Jonatan Ivanov
a6df94d2c6
gradle: run gradle command instead of alias (#8620)
- Similarly to the mvn plugin
- Without this fix, the shell crashes in some cases
2020-02-12 21:52:47 +01:00
Qinfeng Chen
c714d3fced gradle: support gdub completion (#6135) 2019-10-08 15:48:08 +02:00
Janek
15f29aacc2 gradle: also support settings files (#7014) 2019-03-29 22:16:29 +01:00
Zach Whitten
6f24f4a18a gradle: add README (#7211) 2018-10-04 13:30:33 +02:00
Janosch Schwalm
84aa274604 executing gradlew, when gradlew-file exists (#6485) 2018-08-29 11:59:27 -07:00
David Harrigan
b7e544e6f1 gradle plugin should support kotlin gradle build files (#6529)
This change allows the gradle plugin to recongise build.gradle.kts files and
thus generate the autocomplete entries.

-=david=-

closes #6528
2018-05-08 13:13:11 +02:00
Eric Wendelin
4608231b25 Improved gradle options (arguments) completion (#5743)
* Sort gradle options for autocompletion

This will allow us to more easily keep the options list up-to-date

* Add missing gradle options to gradle plugin

Reflect documentation at
https://docs.gradle.org/3.2.1/userguide/gradle_command_line.html
2017-01-04 12:26:23 +01:00
Erik Zivkovic
3b13dc07d8 gradle: extract simple task names from subproject tasks (#5704)
Currently, only tasks with complete subproject specifier are added to
.gradletasknamecache. Gradle commands can be called for all (sub-)projects
they are defined for, using their name as defined in the subproject, here
called "simple" task names. One example is "gradle clean".

This patch adds support for parsing out those "simple" task names from the list
of fully specified task names. The .gradletasknamecache file will contain
both the fully specified names, and the "simple" names for your autocompletion
pleasure.
2016-12-14 17:25:48 +01:00
Erik Zivkovic
e46843685c Improve gradle plugin task parsing (#5230)
* Improve gradle plugin task parsing

Added _gradle and _gradlew as symbolic links to gradle.plugin.zsh,
otherwise the plugin was not properly loaded.

Output from `gradlew tasks --all` is now parsed in two levels,
first we find segments between `------...` and a newline.
Second, all those lines are parsed and cleaned using awk
and added to .gradletasknamecache.

Tested on gradle 2.13, and gradlew 2.14.

* Remove .gradletasknamecache before regenerating it

Remove the .gradletasknamecache file to avoid having an unnecessary
newline at the top of the file when regenerating it.

* Improve gradle task parsing by writing .gradletasknamecache atomically

Previously the .gradletasknamecache file was written line by line inside a parsing loop,
which could cause errors such as half-written cache files if the process was aborted.

This also removes the need of deleting the .gradletasknamecache file before parsing.
2016-09-15 12:16:46 +02:00
Marc Cornellà
249d2229d4 Cleanup gradle plugin file
- Delete useless #!zsh
- Simplify gradle build file check
- Format comments and delete TODO stuff (already dealt with)
- Use `$()` syntax for cat commands
2015-11-21 03:16:34 +01:00
Gergely Nagy
950bbccd60 gradle plugin: also list tasks in subprojects 2015-11-21 03:16:34 +01:00
Kevin O'Neal
a95473919a Update Gradle Commands 2015-10-04 17:05:28 -05:00
Eric Bottard
ef4a315630 Fix invocation of gradlew 2015-09-02 20:17:03 +02:00
Robby Russell
3a57076d93 Merge pull request #3813 from ziegs/fix_gradle_tasks
Fixes gradle autocomplete so it includes subproject tasks
2015-06-14 22:17:24 -07:00
Matthew Ziegelbaum
551d68ad11 Fixes gradle autocomplete. Regex did not include subproject tasks before. 2015-04-25 16:08:26 -04:00
Doug Jones
b1c97bc77e Fix comparison used to determine if the cache is outdated. 2014-06-02 16:11:22 +02:00
Spencer Rinehart
300f94cb0e Use [ -nt ] instead of stat -f%m to check cache files. 2013-03-12 13:23:30 -04:00
Matthew Git McCullough
c2a95b796b Added a gradle build tool plugin
* Enhanced gradle plugin to parse tasks from a quick execution of the tool
* Added a duplicated function for gradlew completion that uses gradlew internally. Builds like Gradle itself (built with Gradle) are sensitive to being run with a matching gradlew version.
* Fixed broken caching of gradle task names. Added - and -- argument completions.
2011-08-11 10:27:47 -06:00