Commit d686f8a8 authored by Alexandre Joly's avatar Alexandre Joly Committed by ncanceill
Browse files

generate with 'pod --completion-script' /cc thx to @ajmccall

version bumped
parent a2f782e5
#compdef pod #compdef pod
#autoload #autoload
# setopt XTRACE VERBOSE
# vim: ft=zsh sw=2 ts=2 et
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# FILE: _pod # FILE: _pod
# DESCRIPTION: Cocoapods (0.33.0) autocomplete plugin for Oh-My-Zsh # DESCRIPTION: Cocoapods (0.33.1) autocomplete plugin for Oh-My-Zsh
# http://cocoapods.org # http://cocoapods.org
# Generated with `pod --completion-script
# AUTHOR: Alexandre Joly (alexandre.joly@mekanics.ch) # AUTHOR: Alexandre Joly (alexandre.joly@mekanics.ch)
# GITHUB: https://github.com/mekanics # GITHUB: https://github.com/mekanics
# TWITTER: @jolyAlexandre # TWITTER: @jolyAlexandre
# VERSION: 0.0.4 # VERSION: 0.0.5
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
local -a _1st_arguments local -a _subcommands
_1st_arguments=( local -a _options
'help:Show help for the given command.'
'init:Generate a Podfile for the current directory.' case "$words[2]" in
'install:Install project dependencies' help)
'ipc:Inter-process communication' case "$words[3]" in
'lib:Develop pods' *) # pod help
'list:List pods' _options=(
'outdated:Show outdated project dependencies' "--help:Show help banner of specified command"
'plugins:Show available CocoaPods plugins' "--no-ansi:Show output without ANSI codes"
'push:Temporary alias for the `pod repo push` command' "--silent:Show nothing"
'repo:Manage spec-repositories' "--verbose:Show more debugging information"
'search:Searches for pods' )
'setup:Setup the CocoaPods environment' _describe -t options "pod help options" _options
'spec:Manage pod specs' ;;
'trunk:Interact with trunk.cocoapods.org'
'try:Try a Pod!'
'update:Update outdated project dependencies'
)
local -a _repo_arguments
_repo_arguments=(
'add:Add a spec repo'
'lint:Validates all specs in a repo'
'push:Push new specifications to a spec-repo'
'remove:Remove a spec repo.'
'update:Update a spec repo'
)
local -a _spec_arguments
_spec_arguments=(
'cat:Prints a spec file'
'create:Create spec file stub'
'edit:Edit a spec file'
'lint:Validates a spec file'
'which:Prints the path of the given spec'
)
local -a _ipc_arguments
_ipc_arguments=(
'list:Lists the specifications know to CocoaPods'
'podfile:Converts a Podfile to YAML'
'repl:The repl listens to commands on standard input'
'spec:Converts a podspec to JSON'
'update-search-index:Updates the search index'
)
local -a _lib_arguments
_lib_arguments=(
'create:Creates a new Pod'
'lint:Validates a Pod'
)
local -a _plugins_arguments
_plugins_arguments=(
'create:Creates a new plugin'
'list:List all known plugins'
'search:Search for known plugins'
)
local -a _list_arguments
_list_arguments=(
'new:Lists pods introduced in the master spec-repo since the last check'
)
local -a _trunk_arguments
_trunk_arguments=(
'add-owner:Add an owner to a pod'
'me:Display information about your sessions'
'push:Publish a podspec'
'register:Manage sessions'
)
local -a _trunk_me_arguments
_trunk_me_arguments=(
'clean-sessions:Remove sessions'
)
local -a _inherited_options
_inherited_options=(
'(--silent)--silent[Show nothing]' \
'(--verbose)--verbose[Show more debugging information]' \
'(--no-ansi)--no-ansi[Show output without ANSI codes]' \
'(--help)--help[Show help banner of specified command]'
)
local -a _root_options
_root_options=(
'(--version)--version[Show the version of CocoaPods]' \
'(--completion-script)--completion-script[Print the auto-completion script]'
)
local -a _install_options
_install_options=(
'(--no-clean)--no-clean[Leave SCM dirs like `.git` and `.svn` intact after downloading]' \
'(--no-integrate)--no-integrate[Skip integration of the Pods libraries in the Xcode project(s)]' \
'(--no-repo-update)--no-repo-update[Skip running `pod repo update` before install]'
)
local -a _lib_lint_options
_lib_lint_options=(
'(--quick)--quick[Lint skips checks that would require to download and build the spec]' \
'(--only-errors)--only-errors[Lint validates even if warnings are present]' \
'(--subspec=NAME)--subspec=[Lint validates only the given subspec]' \
'(--no-subspecs)--no-subspecs[Lint skips validation of subspecs]' \
'(--no-clean)--no-clean[Lint leaves the build directory intact for inspection]'
)
local -a _update_options
_update_options=(
'(--no-clean)--no-clean[Leave SCM dirs like `.git` and `.svn intact after downloading]' \
'(--no-integrate)--no-integrate[Skip integration of the Pods libraries in the Xcode project(s)]' \
'(--no-repo-update)--no-repo-update[Skip running `pod repo update before install]'
)
local -a _outdated_options
_outdated_options=(
'(--no-repo-update)--no-repo-update[Skip running `pod repo update` before install]'
)
local -a _search_options
_search_options=(
'(--full)--full[Search by name, summary, and description]' \
'(--stats)--stats[Show additional stats (like GitHub watchers and forks)]' \
'(--ios)--ios[Restricts the search to Pods supported on iOS]' \
'(--osx)--osx[Restricts the search to Pods supported on OS X]' \
'(--web)--web[Searches on cocoapods.org]'
)
local -a _list_options
_list_options=(
'(--update)--update[Run `pod repo update` before listing]'
)
local -a _plugins_search_options
_plugins_search_options=(
'(--full)--full[Search by name, author, and description]'
)
local -a _repo_push_options
_repo_push_options=(
'(--allow-warnings)--allow-warnings[Allows pushing even if there are warnings]' \
'(--local-only)--local-only[Does not perform the step of pushing REPO to its remote]' \
'*:script or directory:_files'
)
local -a _repo_add_options
_repo_add_options=(
'(--shallow)--shallow[Create a shallow clone (fast clone, but no push capabilities)]'
)
local -a _repo_lint_options
_repo_lint_options=(
'(--only-errors)--only-errors[Lint presents only the errors]'
)
local -a _setup_options
_setup_options=(
'(--no-shallow)--no-shallow[Clone full history so push will work]'
'(--push)--push[Use this option to enable push access once granted]'
)
local -a _spec_lint_options
_spec_lint_options=(
'(--quick)--quick[Lint skips checks that would require to download and build the spec]' \
'(--only-errors)--only-errors[Lint validates even if warnings are present]' \
'(--subspec=NAME)--subspec=[Lint validates only the given subspec]' \
'(--no-subspecs)--no-subspecs[Lint skips validation of subspecs]' \
'(--no-clean)--no-clean[Lint leaves the build directory intact for inspection]' \
'*:script or directory:_files'
)
local -a _spec_cat_options
_spec_cat_options=(
'(--show-all)--show-all[Pick from all versions of the given podspec]'
)
local -a _spec_which_options
_spec_which_options=(
'(--show-all)--show-all[Print all versions of the given podspec]'
)
local -a _spec_edit_options
_spec_edit_options=(
'(--show-all)--show-all[Pick which spec to edit from all available versions of the given podspec]'
)
local -a _trunk_register_options
_trunk_register_options=(
'(--description=DESCRIPTION)--description=[An arbitrary description to easily identify your session later on.]'
)
__first_command_list ()
{
local expl
declare -a tasks
tasks=(install ipc list outdated podfile-info push repo search setup spec update)
_wanted tasks expl 'help' compadd $tasks
}
__repo_list() {
_wanted application expl 'repo' compadd $(command ls -1 ~/.cocoapods/repos 2>/dev/null | sed -e 's/ /\\ /g')
}
__pod-repo() {
local curcontext="$curcontext" state line
typeset -A opt_args
_arguments -C \
':command:->command' \
'*::options:->options'
case $state in
(command)
_describe -t commands "pod repo" _repo_arguments
return
;;
(options)
case $line[1] in
(lint)
_arguments \
$_inherited_options \
$_repo_lint_options \
':feature:__repo_list'
;;
(update)
_arguments \
$_inherited_options \
':feature:__repo_list'
;;
(push)
_arguments \
$_inherited_options \
$_repo_push_options \
':feature:__repo_list'
;;
(add)
_arguments \
$_inherited_options \
$_repo_add_options
(remove)
_arguments \
$_inherited_options \
':feature:__repo_list'
;;
esac
;;
esac esac
} ;;
ipc)
__pod-spec() { case "$words[3]" in
local curcontext="$curcontext" state line list)
typeset -A opt_args case "$words[4]" in
*) # pod ipc list
_arguments -C \ _options=(
$_inherited_options \ "--help:Show help banner of specified command"
':command:->command' \ "--no-ansi:Show output without ANSI codes"
'*::options:->options' "--silent:Show nothing"
"--verbose:Show more debugging information"
case $state in )
(command) _describe -t options "pod ipc list options" _options
_describe -t commands "pod spec" _spec_arguments ;;
return esac
;; ;;
podfile)
(options) case "$words[4]" in
case $line[1] in *) # pod ipc podfile
(create) _options=(
_arguments \ "--help:Show help banner of specified command"
$_inherited_options "--no-ansi:Show output without ANSI codes"
;; "--silent:Show nothing"
"--verbose:Show more debugging information"
(lint) )
_arguments \ _describe -t options "pod ipc podfile options" _options
$_inherited_options \ ;;
$_spec_lint_options esac
;; ;;
repl)
(cat) case "$words[4]" in
_arguments \ *) # pod ipc repl
$_inherited_options \ _options=(
$_spec_cat_options "--help:Show help banner of specified command"
;; "--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
(which) "--verbose:Show more debugging information"
_arguments \ )
$_inherited_options \ _describe -t options "pod ipc repl options" _options
$_spec_which_options ;;
;; esac
;;
(edit) spec)
_arguments \ case "$words[4]" in
$_inherited_options \ *) # pod ipc spec
$_spec_edit_options _options=(
;; "--help:Show help banner of specified command"
esac "--no-ansi:Show output without ANSI codes"
return "--silent:Show nothing"
;; "--verbose:Show more debugging information"
)
_describe -t options "pod ipc spec options" _options
;;
esac
;;
update-search-index)
case "$words[4]" in
*) # pod ipc update-search-index
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod ipc update-search-index options" _options
;;
esac
;;
*) # pod ipc
_subcommands=(
"list:Lists the specifications known to CocoaPods."
"podfile:Converts a Podfile to YAML."
"repl:The repl listens to commands on standard input."
"spec:Converts a podspec to JSON."
"update-search-index:Updates the search index."
)
_describe -t commands "pod ipc subcommands" _subcommands
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod ipc options" _options
;;
esac esac
} ;;
init)
__pod-ipc() { case "$words[3]" in
local curcontext="$curcontext" state line *) # pod init
typeset -A opt_args _options=(
"--help:Show help banner of specified command"
_arguments -C \ "--no-ansi:Show output without ANSI codes"
':command:->command' \ "--silent:Show nothing"
'*::options:->options' "--verbose:Show more debugging information"
)
case $state in _describe -t options "pod init options" _options
(command) ;;
_describe -t commands "pod ipc" _ipc_arguments
return
;;
(options)
_arguments -C \
$_inherited_options
return
;;
esac esac
} ;;
install)
__pod-lib() { case "$words[3]" in
local curcontext="$curcontext" state line *) # pod install
typeset -A opt_args _options=(
"--help:Show help banner of specified command"
_arguments -C \ "--no-ansi:Show output without ANSI codes"
':command:->command' \ "--no-clean:Leave SCM dirs like \`.git\` and \`.svn\` intact after downloading"
'*::options:->options' "--no-integrate:Skip integration of the Pods libraries in the Xcode project(s)"
"--no-repo-update:Skip running \`pod repo update\` before install"
case $state in "--silent:Show nothing"
(command) "--verbose:Show more debugging information"
_describe -t commands "pod lib" _lib_arguments )
return _describe -t options "pod install options" _options
;; ;;
(options)
case $line[1] in
(create)
_arguments \
$_inherited_options
;;
(lint)
_arguments \
$_inherited_options \
$_lib_lint_options
;;
esac
return
;;
esac esac
} ;;
lib)
__pod-plugins() { case "$words[3]" in
local curcontext="$curcontext" state line create)
typeset -A opt_args case "$words[4]" in
*) # pod lib create
_arguments -C \ _options=(
$_inherited_options \ "--help:Show help banner of specified command"
':command:->command' \ "--no-ansi:Show output without ANSI codes"
'*::options:->options' "--silent:Show nothing"
"--verbose:Show more debugging information"
case $state in )
(command) _describe -t options "pod lib create options" _options
_describe -t commands "pod plugins" _plugins_arguments ;;
return esac
;; ;;
lint)
(options) case "$words[4]" in
case $line[1] in *) # pod lib lint
(create) _options=(
_arguments \ "--help:Show help banner of specified command"
$_inherited_options "--no-ansi:Show output without ANSI codes"
;; "--no-clean:Lint leaves the build directory intact for inspection"
"--no-subspecs:Lint skips validation of subspecs"
(list) "--only-errors:Lint validates even if warnings are present"
_arguments \ "--quick:Lint skips checks that would require to download and build the spec"
$_inherited_options "--silent:Show nothing"
;; "--subspec=NAME:Lint validates only the given subspec"
"--verbose:Show more debugging information"
(search) )
_arguments \ _describe -t options "pod lib lint options" _options
$_inherited_options \ ;;
$_plugins_search_options esac
;; ;;
esac *) # pod lib
return _subcommands=(
;; "create:Creates a new Pod"
"lint:Validates a Pod"
)
_describe -t commands "pod lib subcommands" _subcommands
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod lib options" _options
;;
esac esac
} ;;
list)
__pod-trunk() { case "$words[3]" in
local curcontext="$curcontext" state line new)
typeset -A opt_args case "$words[4]" in
*) # pod list new
_arguments -C \ _options=(
$_inherited_options \ "--help:Show help banner of specified command"
':command:->command' \ "--no-ansi:Show output without ANSI codes"
'*::options:->options' "--silent:Show nothing"
"--update:Run \`pod repo update\` before listing"
case $state in "--verbose:Show more debugging information"
(command) )
_describe -t commands "pod trunk" _trunk_arguments _describe -t options "pod list new options" _options
return ;;
;; esac
;;
(options) *) # pod list
case $line[1] in _subcommands=(
(add-owner) "new:Lists pods introduced in the master spec-repo since the last check"
_arguments \ )
$_inherited_options _describe -t commands "pod list subcommands" _subcommands
;; _options=(
"--help:Show help banner of specified command"
(me) "--no-ansi:Show output without ANSI codes"
__pod-trunk-me "--silent:Show nothing"
;; "--update:Run \`pod repo update\` before listing"
"--verbose:Show more debugging information"
(push) )
_arguments \ _describe -t options "pod list options" _options
$_inherited_options ;;
;;
(register)
_arguments \
$_inherited_options \
$_trunk_register_options
;;
esac
return
;;
esac esac
} ;;
outdated)
__pod-trunk-me() { case "$words[3]" in
local curcontext="$curcontext" state line *) # pod outdated
typeset -A opt_args _options=(
"--help:Show help banner of specified command"
_arguments -C \ "--no-ansi:Show output without ANSI codes"
$_inherited_options \ "--no-repo-update:Skip running \`pod repo update\` before install"
':command:->command' \ "--silent:Show nothing"
'*::options:->options' "--verbose:Show more debugging information"
)
case $state in _describe -t options "pod outdated options" _options
(command) ;;
_describe -t commands "pod trunk me" _trunk_me_arguments esac
return ;;
;; plugins)
case "$words[3]" in
(options) create)
case $line[1] in case "$words[4]" in
(clean-sessions) *) # pod plugins create
_arguments \ _options=(
$_inherited_options "--help:Show help banner of specified command"
;; "--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod plugins create options" _options
;;
esac
;;
list)
case "$words[4]" in
*) # pod plugins list
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--verbose:Show more debugging information"
)
_describe -t options "pod plugins list options" _options
;;
esac
;;
search)
case "$words[4]" in
*) # pod plugins search
_options=(
"--full:Search by name, author, and description"
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--verbose:Show more debugging information"
)
_describe -t options "pod plugins search options" _options
;;
esac
;;
*) # pod plugins
_subcommands=(
"create:Creates a new plugin"
"list:List all known plugins"
"search:Search for known plugins"
)
_describe -t commands "pod plugins subcommands" _subcommands
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod plugins options" _options
;;
esac
;;
push)
case "$words[3]" in
*) # pod push
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod push options" _options
;;
esac
;;
repo)
case "$words[3]" in
add)
case "$words[4]" in
*) # pod repo add
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--shallow:Create a shallow clone (fast clone, but no push capabilities)"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod repo add options" _options
;;
esac
;;
lint)
case "$words[4]" in
*) # pod repo lint
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--only-errors:Lint presents only the errors"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod repo lint options" _options
;;
esac
;;
push)
case "$words[4]" in
*) # pod repo push
_options=(
"--allow-warnings:Allows pushing even if there are warnings"
"--help:Show help banner of specified command"
"--local-only:Does not perform the step of pushing REPO to its remote"
"--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod repo push options" _options
;;
esac
;;
remove)
case "$words[4]" in
*) # pod repo remove
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod repo remove options" _options
;;
esac
;;
update)
case "$words[4]" in
*) # pod repo update
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod repo update options" _options
;;
esac
;;
*) # pod repo
_subcommands=(
"add:Add a spec repo."
"lint:Validates all specs in a repo."
"push:Push new specifications to a spec-repo"
"remove:Remove a spec repo"
"update:Update a spec repo."
)
_describe -t commands "pod repo subcommands" _subcommands
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod repo options" _options
;;
esac
;;
search)
case "$words[3]" in
*) # pod search
_options=(
"--full:Search by name, summary, and description"
"--help:Show help banner of specified command"
"--ios:Restricts the search to Pods supported on iOS"
"--no-ansi:Show output without ANSI codes"
"--osx:Restricts the search to Pods supported on OS X"
"--stats:Show additional stats (like GitHub watchers and forks)"
"--verbose:Show more debugging information"
"--web:Searches on cocoapods.org"
)
_describe -t options "pod search options" _options
;;
esac
;;
setup)
case "$words[3]" in
*) # pod setup
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--no-shallow:Clone full history so push will work"
"--push:Use this option to enable push access once granted"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod setup options" _options
;;
esac
;;
spec)
case "$words[3]" in
cat)
case "$words[4]" in
*) # pod spec cat
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--show-all:Pick from all versions of the given podspec"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod spec cat options" _options
;;
esac
;;
create)
case "$words[4]" in
*) # pod spec create
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod spec create options" _options
;;
esac
;;
edit)
case "$words[4]" in
*) # pod spec edit
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--show-all:Pick which spec to edit from all available versions of the given podspec"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod spec edit options" _options
;;
esac
;;
lint)
case "$words[4]" in
*) # pod spec lint
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--no-clean:Lint leaves the build directory intact for inspection"
"--no-subspecs:Lint skips validation of subspecs"
"--only-errors:Lint validates even if warnings are present"
"--quick:Lint skips checks that would require to download and build the spec"
"--silent:Show nothing"
"--subspec=NAME:Lint validates only the given subspec"
"--verbose:Show more debugging information"
)
_describe -t options "pod spec lint options" _options
;;
esac
;;
which)
case "$words[4]" in
*) # pod spec which
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--show-all:Print all versions of the given podspec"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod spec which options" _options
;;
esac
;;
*) # pod spec
_subcommands=(
"cat:Prints a spec file."
"create:Create spec file stub."
"edit:Edit a spec file."
"lint:Validates a spec file."
"which:Prints the path of the given spec."
)
_describe -t commands "pod spec subcommands" _subcommands
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod spec options" _options
;;
esac
;;
trunk)
case "$words[3]" in
add-owner)
case "$words[4]" in
*) # pod trunk add-owner
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod trunk add-owner options" _options
;;
esac
;;
me)
case "$words[4]" in
clean-sessions)
case "$words[5]" in
*) # pod trunk me clean-sessions
_options=(
"--all:Removes all your sessions, except for the current one"
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod trunk me clean-sessions options" _options
;;
esac esac
return ;;
;; *) # pod trunk me
_subcommands=(
"clean-sessions:Remove sessions"
)
_describe -t commands "pod trunk me subcommands" _subcommands
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod trunk me options" _options
;;
esac
;;
push)
case "$words[4]" in
*) # pod trunk push
_options=(
"--allow-warnings:Allows push even if there are lint warnings"
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod trunk push options" _options
;;
esac
;;
register)
case "$words[4]" in
*) # pod trunk register
_options=(
"--description=DESCRIPTION:An arbitrary description to easily identify your session later on."
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod trunk register options" _options
;;
esac
;;
*) # pod trunk
_subcommands=(
"add-owner:Add an owner to a pod"
"me:Display information about your sessions"
"push:Publish a podspec"
"register:Manage sessions"
)
_describe -t commands "pod trunk subcommands" _subcommands
_options=(
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
)
_describe -t options "pod trunk options" _options
;;
esac esac
} ;;
try)
__pod-list() { case "$words[3]" in
local curcontext="$curcontext" state line *) # pod try
typeset -A opt_args _options=(
"--help:Show help banner of specified command"
_arguments -C \ "--no-ansi:Show output without ANSI codes"
$_inherited_options \ "--silent:Show nothing"
$_list_options \ "--verbose:Show more debugging information"
':command:->command' \ )
'*::options:->options' _describe -t options "pod try options" _options
;;
case $state in
(command)
_describe -t commands "pod list" _list_arguments
return
;;
(options)
_arguments -C \
$_inherited_options \
$_list_options
return
;;
esac esac
}
local curcontext="$curcontext" state line
typeset -A opt_args
_arguments -C \
$_inherited_options \
':command:->command' \
'*::options:->options'
case $state in
(command)
_describe -t commands "pod" _1st_arguments
_arguments \
$_inherited_options \
$_root_options
return
;; ;;
update)
(options) case "$words[3]" in
case $line[1] in *) # pod update
(help) _options=(
_arguments \ "--help:Show help banner of specified command"
$_inherited_options \ "--no-ansi:Show output without ANSI codes"
':help:__first_command_list' "--no-clean:Leave SCM dirs like \`.git\` and \`.svn\` intact after downloading"
;; "--no-integrate:Skip integration of the Pods libraries in the Xcode project(s)"
"--no-repo-update:Skip running \`pod repo update\` before install"
(init) "--silent:Show nothing"
_arguments \ "--verbose:Show more debugging information"
$_inherited_options )
;; _describe -t options "pod update options" _options
;;
(push)
_arguments \
$_inherited_options \
$_repo_push_options \
':repo:__repo_list'
;;
(repo)
__pod-repo
;;
(spec)
__pod-spec
;;
(ipc)
__pod-ipc
;;
(lib)
__pod-lib
;;
(list)
__pod-list
;;
(install)
_arguments \
$_inherited_options \
$_install_options
;;
(update)
_arguments \
$_inherited_options \
$_update_options
;;
(outdated)
_arguments \
$_inherited_options \
$_outdated_options
;;
(plugins)
__pod-plugins
;;
(trunk)
__pod-trunk
;;
(try)
_arguments \
$_inherited_options
;;
(search)
_arguments \
$_inherited_options \
$_search_options
;;
(setup)
_arguments \
$_inherited_options \
$_setup_options
;;
esac esac
;; ;;
*) # pod
_subcommands=(
"help:Show help for the given command."
"ipc:Inter-process communication"
"init:Generate a Podfile for the current directory."
"install:Install project dependencies"
"lib:Develop pods"
"list:List pods"
"outdated:Show outdated project dependencies"
"plugins:Show available CocoaPods plugins"
"push:Temporary alias for the \`pod repo push\` command"
"repo:Manage spec-repositories"
"search:Searches for pods"
"setup:Setup the CocoaPods environment"
"spec:Manage pod specs"
"trunk:Interact with the CocoaPods API (e.g. publishing new specs)"
"try:Try a Pod!"
"update:Update outdated project dependencies"
)
_describe -t commands "pod subcommands" _subcommands
_options=(
"--completion-script:Print the auto-completion script"
"--help:Show help banner of specified command"
"--no-ansi:Show output without ANSI codes"
"--silent:Show nothing"
"--verbose:Show more debugging information"
"--version:Show the version of the tool"
)
_describe -t options "pod options" _options
;;
esac esac
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment