Merge pull request #1141 from zsh-users/update-completions
Update nanoc and bundler completions
This commit is contained in:
commit
fb87bc486f
15
src/_bundle
15
src/_bundle
|
@ -28,7 +28,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for Bundler 2.4.1 (https://bundler.io/).
|
# Completion script for Bundler 2.7.0 (https://bundler.io/).
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
@ -199,6 +199,8 @@ case $state in
|
||||||
'--github=-[specify the github source for the added gem]:github' \
|
'--github=-[specify the github source for the added gem]:github' \
|
||||||
'--branch=-[specify the git branch for the added gem]:branch' \
|
'--branch=-[specify the git branch for the added gem]:branch' \
|
||||||
'--ref=-[specify the git ref for the added gem]' \
|
'--ref=-[specify the git ref for the added gem]' \
|
||||||
|
"--glob=[specify the location of a dependency's .gemspec, expanded within Ruby]:glob" \
|
||||||
|
'--quiet[do not print progress information to the starndard output]' \
|
||||||
'--skip-install[adds the gem to the Gemfile but does not install it]' \
|
'--skip-install[adds the gem to the Gemfile but does not install it]' \
|
||||||
'--optimistic[adds optimistic declaration of version]' \
|
'--optimistic[adds optimistic declaration of version]' \
|
||||||
'--strict[adds strict declaration of version]' \
|
'--strict[adds strict declaration of version]' \
|
||||||
|
@ -277,6 +279,7 @@ case $state in
|
||||||
'--full-index[fall back to using the single file index of all gems]' \
|
'--full-index[fall back to using the single file index of all gems]' \
|
||||||
'--add-platform=-[add a new platform to the lockfile, re-resolving for the addition of that platform]' \
|
'--add-platform=-[add a new platform to the lockfile, re-resolving for the addition of that platform]' \
|
||||||
'--remove-platform=-[remove a platform from the lockfile]' \
|
'--remove-platform=-[remove a platform from the lockfile]' \
|
||||||
|
'--normalize-platforms[normalize lockfile platforms]' \
|
||||||
'--patch[if updating, prefer updating only to next patch version]' \
|
'--patch[if updating, prefer updating only to next patch version]' \
|
||||||
'--minor[if updating, prefer updating only to next minor version]' \
|
'--minor[if updating, prefer updating only to next minor version]' \
|
||||||
'--major[if updating, prefer updating to next major version(default)]' \
|
'--major[if updating, prefer updating to next major version(default)]' \
|
||||||
|
@ -296,6 +299,7 @@ case $state in
|
||||||
init)
|
init)
|
||||||
_arguments \
|
_arguments \
|
||||||
'--gemspec=-[use the specified .gemspec to create the Gemfile]: :_files' \
|
'--gemspec=-[use the specified .gemspec to create the Gemfile]: :_files' \
|
||||||
|
'--gemfile=[use the specified name for the gamfile instead of Gemfile]:name' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
;;
|
;;
|
||||||
gem)
|
gem)
|
||||||
|
@ -308,9 +312,12 @@ case $state in
|
||||||
'(--ext --no-ext)--no-ext[do not add extension code]' \
|
'(--ext --no-ext)--no-ext[do not add extension code]' \
|
||||||
'(--no-mit --mit)--mit[add an MIT license to a LICENSE.txt file in the root of the generated project]' \
|
'(--no-mit --mit)--mit[add an MIT license to a LICENSE.txt file in the root of the generated project]' \
|
||||||
'(--mit --no-mit)--no-mit[do not create a LICENSE.txt]' \
|
'(--mit --no-mit)--no-mit[do not create a LICENSE.txt]' \
|
||||||
'(-t --test)'{-t,--test}=-'[specify the test framework]: :(minitest rspec test-unit)' \
|
'(-t --test --no-test)'{-t,--test}=-'[specify the test framework]: :(minitest rspec test-unit)' \
|
||||||
'--ci=-[specify the continuous integration service]: :(github travis gitlab circle)' \
|
'(-t --test --no-test)--no-test[do not use a test framework]' \
|
||||||
'--linter=-[specify the linter and code formatter]: :(rubocop standard)' \
|
'(--ci --no-ci)--ci=-[specify the continuous integration service]: :(github travis gitlab circle)' \
|
||||||
|
'(--ci --no-ci)--no-ci[do not use a continuous integration service]' \
|
||||||
|
'(--linter --no-linter)--linter=-[specify the linter and code formatter]: :(rubocop standard)' \
|
||||||
|
'(--linter --no-linter)--no-linter[do not add a linter]' \
|
||||||
'(-e --edit)'{-e,--edit}=-'[open the resulting GEM_NAME.gemspec in EDITOR]' \
|
'(-e --edit)'{-e,--edit}=-'[open the resulting GEM_NAME.gemspec in EDITOR]' \
|
||||||
'1::gem_name:' \
|
'1::gem_name:' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
|
|
18
src/_nanoc
18
src/_nanoc
|
@ -23,7 +23,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for nanoc 4.12.16 (https://nanoc.app/)
|
# Completion script for nanoc 4.13.5 (https://nanoc.app/)
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
@ -94,7 +94,8 @@ case $state in
|
||||||
args=(
|
args=(
|
||||||
{-W,--watch}'[watch for changes and recompile when needed]'
|
{-W,--watch}'[watch for changes and recompile when needed]'
|
||||||
"--diff[generate diff]"
|
"--diff[generate diff]"
|
||||||
)
|
"--focus=[compile only items matching the given pattern]:pattern"
|
||||||
|
)
|
||||||
;;
|
;;
|
||||||
create-site)
|
create-site)
|
||||||
args=(
|
args=(
|
||||||
|
@ -108,22 +109,21 @@ case $state in
|
||||||
{-L,--list}"[list available locations to deploy to]"
|
{-L,--list}"[list available locations to deploy to]"
|
||||||
{-n,--dry-run}"[show what would be deployed]"
|
{-n,--dry-run}"[show what would be deployed]"
|
||||||
{-t,--target=}"[specify the location to deploy to (default:\`default\`)]:target"
|
{-t,--target=}"[specify the location to deploy to (default:\`default\`)]:target"
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
prune)
|
prune)
|
||||||
args=(
|
args+=(
|
||||||
{-n,--dry-run}"[print files to be deleted instead of actually deleting them]"
|
{-n,--dry-run}"[print files to be deleted instead of actually deleting them]"
|
||||||
{-y,--yes}"[confirm deletion]"
|
{-y,--yes}"[confirm deletion]"
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
shell)
|
shell)
|
||||||
args=(
|
args=(
|
||||||
{-p,--preprocess}"[run preprocessor]"
|
{-p,--preprocess}"[run preprocessor]"
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
show-data|show-plugins|show-rules)
|
show-data|show-plugins|show-rules)
|
||||||
args=(
|
args=()
|
||||||
)
|
|
||||||
;;
|
;;
|
||||||
view)
|
view)
|
||||||
args=(
|
args=(
|
||||||
|
@ -131,7 +131,7 @@ case $state in
|
||||||
{-L,--live-reload}"[reload on changes]"
|
{-L,--live-reload}"[reload on changes]"
|
||||||
{-o,--host=}"[specify the host to listen on(default: 127.0.0.1)]:host"
|
{-o,--host=}"[specify the host to listen on(default: 127.0.0.1)]:host"
|
||||||
{-p,--port=}"[specify the port to listen on(default: 3000)]:port"
|
{-p,--port=}"[specify the port to listen on(default: 3000)]:port"
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue