fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
7360deee7
master
1function __fish_complete_fab_tasks 2for taskin ( fab -l) 3set -l _matched( string match -r"^ +([^ ]*) *([^ ]?.*)" $task ) 4 5printf "%s\t%s\n" " $_matched [ 2 ] " " $_matched [ 3 ] " 6end 7end 8 9# tasks 10complete -x -c fab -a"(__fish_complete_fab_tasks)" 11 12# options 13complete -c fab -s h -l help -d"show this help message and exit" 14complete -x -c fab -s d -l display -a"(fab --shortlist)" -d"print detailed info about command NAME" 15complete -x -c fab -s F -l list-format -a"short normal nested" -d"formats --list, choices: short, normal, nested" 16complete -c fab -s I -l initial-password-prompt -d"Force password prompt up-front" 17complete -c fab -l initial-sudo-password-prompt -d"Force sudo password prompt up-front" 18complete -c fab -s l -l list -d"print list of possible commands and exit" 19complete -x -c fab -l set -d"comma separated KEY=VALUE pairs to set Fab env vars" 20complete -c fab -l shortlist -d"alias for -F short --list" 21complete -c fab -s V -l version -d"show program's version number and exit" 22complete -c fab -s a -l no_agent -d"don't user the running SSH agent" 23complete -c fab -s A -l forward-agent -d"forward local agent to remote end" 24complete -c fab -l abort-on-prompts -d"abort instead of prompting (for password, host, etc)" 25complete -r -c fab -s c -l config -d"specify location of config file to use" 26complete -c fab -l colorize-errors -d"Color error output" 27complete -c fab -s D -l disable-known-host -d"do not load user known_hosts file" 28complete -c fab -s e -l eagerly-disconnect -d"disconnect from hosts as soon as possible" 29complete -r -c fab -s f -l fabfile -d"python module file to import, e.g. '../other.py'" 30complete -x -c fab -s g -l gateway -a"(__fish_complete_user_at_hosts)" -d"gateway host to connect through" 31complete -c fab -l gss-auth -d"Use GSS-API authentication" 32complete -c fab -l gss-deleg -d"Delegate GSS-API client credentials or not" 33complete -c fab -l gss-kex -d"Perform GSS-API Key Exchange and user authentication" 34complete -x -c fab -l hide -d"comma-separated list of output levels to hide" 35complete -x -c fab -s H -l hosts -a"(__fish_complete_user_at_hosts)" -d"comma-separated list of hosts to operate on" 36complete -r -c fab -s i -d"path to SSH private key file. May be repeated." 37complete -c fab -s k -l no-keys -d"don't load private key files from ~/.ssh/" 38complete -x -c fab -l keepaplive -d"enables a keepalive every N seconds" 39complete -c fab -l linewise -d"print line-by-line instead of byte-by-byte" 40complete -x -c fab -s n -l connection-attempts -d"make M attempts to connect before giving up" 41complete -c fab -l no-pty -d"do not use pseudo-terminal in run/sudo" 42complete -c fab -s p -l password -d"password for use with authentication and/or sudo" 43complete -c fab -s P -l parallel -d"default to parallel execution method" 44complete -x -c fab -l port -d"SSH connection port" 45complete -c fab -s r -l reject-unknown-host -d"reject unknown hosts" 46complete -x -c fab -l sudo-password -d"password for use with sudo only" 47complete -x -c fab -l system-known-hosts -d"load system known_hosts file before reading user known_hosts" 48complete -x -c fab -s R -l roles -d"comma-separated list of roles to operate on" 49complete -x -c fab -s s -l shell -d"specify a new shell, defaults to '/bin/bash -l -c'" 50complete -x -c fab -l show -d"comma-separated list of output levels to show" 51complete -c fab -l skip-bad-hosts -d"skip over hosts that can't be reached" 52complete -c fab -l skip-unknown-tasks -d"skip over unknown tasks" 53complete -r -c fab -l ssh-config-path -d"Path to SSH config file" 54complete -x -c fab -s t -l timeout -d"set connection timeout to N seconds" 55complete -x -c fab -s T -l command-timeout -d"set remote command timeout to N seconds" 56complete -x -c fab -s u -l user -d"username to use when connecting to remote hosts" 57complete -c fab -s w -l warn-only -d"warn, instead of abort, when commands fail" 58complete -x -c fab -s x -l exclude-hosts -a"(__fish_complete_user_at_hosts)" -d"comma-separated list of hosts to exclude" 59complete -x -c fab -s z -l pool-size -d"number of concurrent processes to use in parallel mode"