1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
# bash completion for tty-share -*- shell-script -*-
_tty-share()
{
local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
case $prev in
'-args'|'--args')
COMPREPLY=( $(compgen -W "string" -- $cur) )
return 0
;;
'-command'|'--command')
COMPREPLY=( $(compgen -W "/bin/bash" -- $cur) )
return 0
;;
'-detach-keys'|'--detach-keys')
COMPREPLY=( $(compgen -W "string" -- $cur) )
return 0
;;
'-frontend-path'|'--frontend-path')
COMPREPLY=( $(compgen -W "string" -- $cur) )
return 0
;;
'-listen'|'--listen')
COMPREPLY=( $(compgen -W "localhost:8000" -- $cur) )
return 0
;;
'-logfile'|'--logfile')
COMPREPLY=( $(compgen -W "-" -- $cur) )
return 0
;;
'-no-tls'|'--no-tls')
return 0
;;
'-public'|'--public')
return 0
;;
'-readonly'|'--readonly')
return 0
;;
'-tty-proxy'|'--tty-proxy')
COMPREPLY=( $(compgen -W "on.tty-share.com:4567" -- $cur) )
return 0
;;
'-verbose'|'--verbose')
return 0
;;
'-version'|'--version')
return 0
;;
esac
case $cur in
-*)
OPTS="--args
--command
--detach-keys
--frontend-path
--listen
--logfile
--no-tls
--public
--readonly
--tty-proxy
--verbose
--version"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
;;
esac
}
complete -F _tty-share tty-share
|