X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fbundler%2F_bundler;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fbundler%2F_bundler;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=51678dd7cbb7fceaec9943f7eb54c3cb2c7c8ad0;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/bundler/_bundler b/stow/oh-my-zsh/.oh-my-zsh/plugins/bundler/_bundler deleted file mode 100644 index 51678dd..0000000 --- a/stow/oh-my-zsh/.oh-my-zsh/plugins/bundler/_bundler +++ /dev/null @@ -1,105 +0,0 @@ -#compdef bundle - -local curcontext="$curcontext" state line _gems _opts ret=1 - -_arguments -C -A "-v" -A "--version" \ - '(- 1 *)'{-v,--version}'[display version information]' \ - '1: :->cmds' \ - '*:: :->args' && ret=0 - -case $state in - cmds) - _values "bundle command" \ - "install[Install the gems specified by the Gemfile or Gemfile.lock]" \ - "update[Update dependencies to their latest versions]" \ - "package[Package the .gem files required by your application]" \ - "exec[Execute a script in the context of the current bundle]" \ - "config[Specify and read configuration options for bundler]" \ - "check[Determine whether the requirements for your application are installed]" \ - "list[Show all of the gems in the current bundle]" \ - "show[Show the source location of a particular gem in the bundle]" \ - "info[Show details of a particular gem in the bundle]" \ - "outdated[Show all of the outdated gems in the current bundle]" \ - "console[Start an IRB session in the context of the current bundle]" \ - "open[Open an installed gem in the editor]" \ - "viz[Generate a visual representation of your dependencies]" \ - "init[Generate a simple Gemfile, placed in the current directory]" \ - "gem[Create a simple gem, suitable for development with bundler]" \ - "platform[Displays platform compatibility information]" \ - "clean[Cleans up unused gems in your bundler directory]" \ - "help[Describe available tasks or one specific task]" - ret=0 - ;; - args) - case $line[1] in - help) - _values 'commands' \ - 'install' \ - 'update' \ - 'package' \ - 'exec' \ - 'config' \ - 'check' \ - 'list' \ - 'show' \ - 'outdated' \ - 'console' \ - 'open' \ - 'viz' \ - 'init' \ - 'gem' \ - 'platform' \ - 'help' && ret=0 - ;; - install) - _arguments \ - '(--no-color)--no-color[disable colorization in output]' \ - '(--local)--local[do not attempt to connect to rubygems.org]' \ - '(--quiet)--quiet[only output warnings and errors]' \ - '(--gemfile)--gemfile=-[use the specified gemfile instead of Gemfile]:gemfile' \ - '(--system)--system[install to the system location]' \ - '(--deployment)--deployment[install using defaults tuned for deployment environments]' \ - '(--frozen)--frozen[do not allow the Gemfile.lock to be updated after this install]' \ - '(--path)--path=-[specify a different path than the system default]:path:_files' \ - '(--binstubs)--binstubs=-[generate bin stubs for bundled gems to ./bin]:directory:_files' \ - '(--without)--without=-[exclude gems that are part of the specified named group]:groups' - ret=0 - ;; - exec) - _normal && ret=0 - ;; - clean) - _arguments \ - '(--force)--force[forces clean even if --path is not set]' \ - '(--dry-run)--dry-run[only print out changes, do not actually clean gems]' \ - '(--no-color)--no-color[Disable colorization in output]' \ - '(--verbose)--verbose[Enable verbose output mode]' - ret=0 - ;; - outdated) - _arguments \ - '(--pre)--pre[Check for newer pre-release gems]' \ - '(--source)--source[Check against a specific source]' \ - '(--local)--local[Do not attempt to fetch gems remotely and use the gem cache instead]' \ - '(--no-color)--no-color[Disable colorization in output]' \ - '(--verbose)--verbose[Enable verbose output mode]' - ret=0 - ;; - (open|show|info) - _gems=( $(bundle show 2> /dev/null | sed -e '/^ \*/!d; s/^ \* \([^ ]*\) .*/\1/') ) - if [[ $_gems != "" ]]; then - _values 'gems' $_gems && ret=0 - fi - ;; - *) - _opts=( $(bundle help $line[1] | sed -e '/^ \[-/!d; s/^ \[\(-[^=]*\)=.*/\1/') ) - _opts+=( $(bundle help $line[1] | sed -e '/^ -/!d; s/^ \(-.\), \[\(-[^=]*\)=.*/\1 \2/') ) - if [[ $_opts != "" ]]; then - _values 'options' $_opts && ret=0 - fi - ;; - esac - ;; -esac - -return ret