commit
5031fbd255
10
src/_gem
10
src/_gem
|
@ -50,6 +50,7 @@ _gem() {
|
||||||
"mirror[Mirror a gem repository]" \
|
"mirror[Mirror a gem repository]" \
|
||||||
"outdated[Display all gems that need updates]" \
|
"outdated[Display all gems that need updates]" \
|
||||||
"pristine[Restores installed gems to pristine condition from files located in the gem cache]" \
|
"pristine[Restores installed gems to pristine condition from files located in the gem cache]" \
|
||||||
|
"push[Push a gem up to RubyGems.org]" \
|
||||||
"query[Query gem information in local or remote repositories]" \
|
"query[Query gem information in local or remote repositories]" \
|
||||||
"rdoc[Generates RDoc for pre-installed gems]" \
|
"rdoc[Generates RDoc for pre-installed gems]" \
|
||||||
"search[Display all gems whose name contains STRING]" \
|
"search[Display all gems whose name contains STRING]" \
|
||||||
|
@ -93,6 +94,7 @@ __gem_help_arguments() {
|
||||||
"mirror"
|
"mirror"
|
||||||
"outdated"
|
"outdated"
|
||||||
"pristine"
|
"pristine"
|
||||||
|
"push"
|
||||||
"query"
|
"query"
|
||||||
"rdoc"
|
"rdoc"
|
||||||
"search"
|
"search"
|
||||||
|
@ -301,6 +303,14 @@ _gem_pristine() {
|
||||||
$gem_general_flags && ret=0
|
$gem_general_flags && ret=0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_gem_push() {
|
||||||
|
_arguments \
|
||||||
|
"*:URI: _alternative 'files:file:_files -g *.gem'" \
|
||||||
|
"(-k --key)"{-k,--key}"[Use the given API key from ~/.gem/credentials]" \
|
||||||
|
"--host[Push to another gemcutter-compatible host]" \
|
||||||
|
$gem_general_flags && ret=0
|
||||||
|
}
|
||||||
|
|
||||||
_gem_query() {
|
_gem_query() {
|
||||||
_arguments \
|
_arguments \
|
||||||
"(-i --no-installed)"{-i,--no-installed}"[Check for installed gem]" \
|
"(-i --no-installed)"{-i,--no-installed}"[Check for installed gem]" \
|
||||||
|
|
Loading…
Reference in New Issue