gem edit (http://gemedit.rubyforge.org)
This commit is contained in:
parent
65eefd3225
commit
6c7e9527d6
8
src/_gem
8
src/_gem
|
@ -40,6 +40,7 @@ _gem() {
|
||||||
"cleanup[Clean up old versions of installed gems in the local repository]" \
|
"cleanup[Clean up old versions of installed gems in the local repository]" \
|
||||||
"contents[Display the contents of the installed gems]" \
|
"contents[Display the contents of the installed gems]" \
|
||||||
"dependency[Show the dependencies of an installed gem]" \
|
"dependency[Show the dependencies of an installed gem]" \
|
||||||
|
"edit[Edit installed gem in editor]" \
|
||||||
"environment[Display information about the RubyGems environment]" \
|
"environment[Display information about the RubyGems environment]" \
|
||||||
"fetch[Download a gem and place it in the current directory]" \
|
"fetch[Download a gem and place it in the current directory]" \
|
||||||
"generate_index[Generates the index files for a gem server directory]" \
|
"generate_index[Generates the index files for a gem server directory]" \
|
||||||
|
@ -179,6 +180,13 @@ _gem_dependency() {
|
||||||
"(-p --pipe)"{-p,--pipe}"[Pipe Format (name --version ver)]" \
|
"(-p --pipe)"{-p,--pipe}"[Pipe Format (name --version ver)]" \
|
||||||
$gem_general_flags && ret=0
|
$gem_general_flags && ret=0
|
||||||
}
|
}
|
||||||
|
_gem_edit() {
|
||||||
|
_arguments \
|
||||||
|
"*:gemname:__all_gems" \
|
||||||
|
"(-e --editor)"{-e,--editor}"[GEMEDITOR, BUNDLER_EDITOR, VISUAL and EDITOR environment variables are used to by default]" \
|
||||||
|
"(-d --dryrun)"{-d,--dryrun}"[Shows what command would be run without running it]" \
|
||||||
|
$gem_general_flags && ret=0
|
||||||
|
}
|
||||||
|
|
||||||
_gem_environment() {
|
_gem_environment() {
|
||||||
typeset -g _environment_arg=
|
typeset -g _environment_arg=
|
||||||
|
|
Loading…
Reference in New Issue