added new stuff
This commit is contained in:
parent
5024639019
commit
a0d198cdcb
17 changed files with 4244 additions and 5 deletions
34
lib/local/_revolver
Normal file
34
lib/local/_revolver
Normal file
|
@ -0,0 +1,34 @@
|
|||
#compdef revolver
|
||||
|
||||
_commands=(
|
||||
'start:start the spinner process'
|
||||
'update:update the message'
|
||||
'stop:stop the spinner process'
|
||||
'demo:display a demo of each style'
|
||||
)
|
||||
|
||||
###
|
||||
# Complete revolver commands
|
||||
###
|
||||
function _revolver_commands() {
|
||||
_describe -t commands 'commands' _commands "$@"
|
||||
}
|
||||
|
||||
###
|
||||
# Revolver completion
|
||||
###
|
||||
function _revolver() {
|
||||
typeset -A opt_args
|
||||
local context state line curcontext="$curcontext"
|
||||
|
||||
# Set option arguments
|
||||
_arguments -A \
|
||||
'(-h --help)'{-h,--help}'[show help text and exit]' \
|
||||
'(-v --version)'{-v,--version}'[show version information and exit]'
|
||||
|
||||
# Set log level arguments
|
||||
_arguments \
|
||||
'1: :_revolver_commands'
|
||||
}
|
||||
|
||||
_revolver "$@"
|
Loading…
Add table
Add a link
Reference in a new issue