innernet/doc/innernet.completions.zsh

589 lines
20 KiB
Bash
Raw Permalink Normal View History

#compdef innernet
autoload -U is-at-least
_innernet() {
typeset -A opt_args
typeset -a _arguments_options
local ret=1
if is-at-least 5.2; then
_arguments_options=(-s -S -C)
else
_arguments_options=(-s -C)
fi
local context curcontext="$curcontext" state line
_arguments "${_arguments_options[@]}" \
'-c+[]:CONFIG_DIR:_files' \
'--config-dir=[]:CONFIG_DIR:_files' \
'-d+[]:DATA_DIR:_files' \
'--data-dir=[]:DATA_DIR:_files' \
2022-01-11 20:18:19 +00:00
'--backend=[Specify a WireGuard backend to use. If not set, innernet will auto-select based on availability]:BACKEND:(kernel userspace)' \
'--mtu=[Specify the desired MTU for your interface (default\: 1280)]:MTU: ' \
2021-05-31 15:23:14 +00:00
'*-v[Verbose output, use -vv for even higher verbositude]' \
'*--verbose[Verbose output, use -vv for even higher verbositude]' \
'--no-routing[Whether the routing should be done by innernet or is done by an external tool like e.g. babeld]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_innernet_commands" \
"*::: :->innernet" \
&& ret=0
case $state in
(innernet)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:innernet-command-$line[1]:"
case $line[1] in
2022-01-11 20:18:19 +00:00
(install)
_arguments "${_arguments_options[@]}" \
'--hosts-path=[The path to write hosts to]:HOSTS_PATH:_files' \
2022-01-11 20:18:19 +00:00
'(--default-name)--name=[Set a specific interface name]:NAME: ' \
'*--exclude-nat-candidates=[Exclude one or more CIDRs from NAT candidate reporting. ex. --exclude-nat-candidates '\''0.0.0.0/0'\'' would report no candidates]:EXCLUDE_NAT_CANDIDATES: ' \
'(--hosts-path)--no-write-hosts[Don'\''t write to any hosts files]' \
'--default-name[Use the network name inside the invitation as the interface name]' \
'-d[Delete the invitation after a successful install]' \
'--delete-invite[Delete the invitation after a successful install]' \
2021-12-05 17:35:18 +00:00
'--no-nat-traversal[Don'\''t attempt NAT traversal. Note that this still will report candidates unless you also specify to exclude all NAT candidates]' \
'(--exclude-nat-candidates)--no-nat-candidates[Don'\''t report any candidates to coordinating server. Shorthand for --exclude-nat-candidates '\''0.0.0.0/0'\'']' \
'-h[Print help]' \
'--help[Print help]' \
':invite -- Path to the invitation file:_files' \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" \
'-s[One-line peer list]' \
'--short[One-line peer list]' \
'-t[Display peers in a tree based on the CIDRs]' \
'--tree[Display peers in a tree based on the CIDRs]' \
'-h[Print help]' \
'--help[Print help]' \
2022-01-11 20:18:19 +00:00
'::interface:' \
&& ret=0
;;
(up)
_arguments "${_arguments_options[@]}" \
2022-01-11 20:18:19 +00:00
'--interval=[Keep fetching the latest peer list at the specified interval in seconds. Valid only in daemon mode]:INTERVAL: ' \
'--hosts-path=[The path to write hosts to]:HOSTS_PATH:_files' \
2022-01-11 20:18:19 +00:00
'*--exclude-nat-candidates=[Exclude one or more CIDRs from NAT candidate reporting. ex. --exclude-nat-candidates '\''0.0.0.0/0'\'' would report no candidates]:EXCLUDE_NAT_CANDIDATES: ' \
'-d[Enable daemon mode i.e. keep the process running, while fetching the latest peer list periodically]' \
'--daemon[Enable daemon mode i.e. keep the process running, while fetching the latest peer list periodically]' \
'(--hosts-path)--no-write-hosts[Don'\''t write to any hosts files]' \
2021-12-05 17:35:18 +00:00
'--no-nat-traversal[Don'\''t attempt NAT traversal. Note that this still will report candidates unless you also specify to exclude all NAT candidates]' \
'(--exclude-nat-candidates)--no-nat-candidates[Don'\''t report any candidates to coordinating server. Shorthand for --exclude-nat-candidates '\''0.0.0.0/0'\'']' \
'-h[Print help]' \
'--help[Print help]' \
2022-01-11 20:18:19 +00:00
'::interface:' \
&& ret=0
;;
(fetch)
_arguments "${_arguments_options[@]}" \
'--hosts-path=[The path to write hosts to]:HOSTS_PATH:_files' \
2022-01-11 20:18:19 +00:00
'*--exclude-nat-candidates=[Exclude one or more CIDRs from NAT candidate reporting. ex. --exclude-nat-candidates '\''0.0.0.0/0'\'' would report no candidates]:EXCLUDE_NAT_CANDIDATES: ' \
'(--hosts-path)--no-write-hosts[Don'\''t write to any hosts files]' \
2021-12-05 17:35:18 +00:00
'--no-nat-traversal[Don'\''t attempt NAT traversal. Note that this still will report candidates unless you also specify to exclude all NAT candidates]' \
'(--exclude-nat-candidates)--no-nat-candidates[Don'\''t report any candidates to coordinating server. Shorthand for --exclude-nat-candidates '\''0.0.0.0/0'\'']' \
'-h[Print help]' \
'--help[Print help]' \
2022-01-11 20:18:19 +00:00
':interface:' \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" \
2022-01-31 19:56:11 +00:00
'--yes[Bypass confirmation]' \
'-h[Print help]' \
'--help[Print help]' \
2022-01-11 20:18:19 +00:00
':interface:' \
&& ret=0
;;
(down)
_arguments "${_arguments_options[@]}" \
'-h[Print help]' \
'--help[Print help]' \
2022-01-11 20:18:19 +00:00
':interface:' \
&& ret=0
;;
(add-peer)
_arguments "${_arguments_options[@]}" \
2022-01-11 20:18:19 +00:00
'--name=[Name of new peer]:NAME: ' \
'(--auto-ip)--ip=[Specify desired IP of new peer (within parent CIDR)]:IP: ' \
'--cidr=[Name of CIDR to add new peer under]:CIDR: ' \
'--admin=[Make new peer an admin?]:ADMIN:(true false)' \
2022-01-11 20:18:19 +00:00
'--save-config=[Save the config to the given location]:SAVE_CONFIG: ' \
'--invite-expires=[Invite expiration period (eg. '\''30d'\'', '\''7w'\'', '\''2h'\'', '\''60m'\'', '\''1000s'\'')]:INVITE_EXPIRES: ' \
'--auto-ip[Auto-assign the peer the first available IP within the CIDR]' \
'--yes[Bypass confirmation]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
2022-01-11 20:18:19 +00:00
':interface:' \
&& ret=0
;;
2021-05-31 15:23:14 +00:00
(rename-peer)
_arguments "${_arguments_options[@]}" \
2022-01-11 20:18:19 +00:00
'--name=[Name of peer to rename]:NAME: ' \
'--new-name=[The new name of the peer]:NEW_NAME: ' \
2021-05-31 15:23:14 +00:00
'--yes[Bypass confirmation]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
2022-01-11 20:18:19 +00:00
':interface:' \
2021-05-31 15:23:14 +00:00
&& ret=0
;;
(add-cidr)
_arguments "${_arguments_options[@]}" \
2022-01-11 20:18:19 +00:00
'--name=[The CIDR name (eg. '\''engineers'\'')]:NAME: ' \
'--cidr=[The CIDR network (eg. '\''10.42.5.0/24'\'')]:CIDR: ' \
'--parent=[The CIDR parent name]:PARENT: ' \
'--yes[Bypass confirmation]' \
'-h[Print help]' \
'--help[Print help]' \
2022-01-11 20:18:19 +00:00
':interface:' \
&& ret=0
;;
(delete-cidr)
_arguments "${_arguments_options[@]}" \
2022-01-11 20:18:19 +00:00
'--name=[The CIDR name (eg. '\''engineers'\'')]:NAME: ' \
'--yes[Bypass confirmation]' \
'-h[Print help]' \
'--help[Print help]' \
2022-01-11 20:18:19 +00:00
':interface:' \
&& ret=0
;;
2021-06-14 14:53:02 +00:00
(list-cidrs)
_arguments "${_arguments_options[@]}" \
'-t[Display CIDRs in tree format]' \
'--tree[Display CIDRs in tree format]' \
'-h[Print help]' \
'--help[Print help]' \
2022-01-11 20:18:19 +00:00
':interface:' \
2021-06-14 14:53:02 +00:00
&& ret=0
;;
(disable-peer)
_arguments "${_arguments_options[@]}" \
'-h[Print help]' \
'--help[Print help]' \
2022-01-11 20:18:19 +00:00
':interface:' \
&& ret=0
;;
(enable-peer)
_arguments "${_arguments_options[@]}" \
'-h[Print help]' \
'--help[Print help]' \
2022-01-11 20:18:19 +00:00
':interface:' \
&& ret=0
;;
(add-association)
_arguments "${_arguments_options[@]}" \
2022-01-31 19:56:11 +00:00
'--yes[Bypass confirmation]' \
'-h[Print help]' \
'--help[Print help]' \
2022-01-11 20:18:19 +00:00
':interface:' \
'::cidr1 -- The first cidr to associate:' \
'::cidr2 -- The second cidr to associate:' \
&& ret=0
;;
(delete-association)
_arguments "${_arguments_options[@]}" \
2022-01-31 19:56:11 +00:00
'--yes[Bypass confirmation]' \
'-h[Print help]' \
'--help[Print help]' \
2022-01-11 20:18:19 +00:00
':interface:' \
2022-01-31 19:56:11 +00:00
'::cidr1 -- The first cidr to associate:' \
'::cidr2 -- The second cidr to associate:' \
&& ret=0
;;
(list-associations)
_arguments "${_arguments_options[@]}" \
'-h[Print help]' \
'--help[Print help]' \
2022-01-11 20:18:19 +00:00
':interface:' \
&& ret=0
;;
(set-listen-port)
_arguments "${_arguments_options[@]}" \
2022-01-11 20:18:19 +00:00
'-l+[The listen port you'\''d like to set for the interface]:LISTEN_PORT: ' \
'--listen-port=[The listen port you'\''d like to set for the interface]:LISTEN_PORT: ' \
2021-12-05 17:35:18 +00:00
'(-l --listen-port)-u[Unset the local listen port to use a randomized port]' \
'(-l --listen-port)--unset[Unset the local listen port to use a randomized port]' \
'--yes[Bypass confirmation]' \
'-h[Print help]' \
'--help[Print help]' \
2022-01-11 20:18:19 +00:00
':interface:' \
&& ret=0
;;
(override-endpoint)
_arguments "${_arguments_options[@]}" \
2022-01-11 20:18:19 +00:00
'-e+[The listen port you'\''d like to set for the interface]:ENDPOINT: ' \
'--endpoint=[The listen port you'\''d like to set for the interface]:ENDPOINT: ' \
2021-12-05 17:35:18 +00:00
'(-e --endpoint)-u[Unset an existing override to use the automatic endpoint discovery]' \
'(-e --endpoint)--unset[Unset an existing override to use the automatic endpoint discovery]' \
'--yes[Bypass confirmation]' \
'-h[Print help]' \
'--help[Print help]' \
2022-01-11 20:18:19 +00:00
':interface:' \
&& ret=0
;;
(completions)
_arguments "${_arguments_options[@]}" \
'-h[Print help]' \
'--help[Print help]' \
2022-01-11 20:18:19 +00:00
':shell:(bash elvish fish powershell zsh)' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
":: :_innernet__help_commands" \
"*::: :->help" \
&& ret=0
case $state in
(help)
words=($line[1] "${words[@]}")
(( CURRENT += 1 ))
curcontext="${curcontext%:*:*}:innernet-help-command-$line[1]:"
case $line[1] in
(install)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(up)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(fetch)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(down)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(add-peer)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(rename-peer)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(add-cidr)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(delete-cidr)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(list-cidrs)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(disable-peer)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(enable-peer)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(add-association)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(delete-association)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(list-associations)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(set-listen-port)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(override-endpoint)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(completions)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
esac
;;
esac
;;
esac
;;
esac
}
(( $+functions[_innernet_commands] )) ||
_innernet_commands() {
local commands; commands=(
2022-01-11 20:18:19 +00:00
'install:Install a new innernet config' \
'show:Enumerate all innernet connections' \
'up:Bring up your local interface, and update it with latest peer list' \
'fetch:Fetch and update your local interface with the latest peer list' \
'uninstall:Uninstall an innernet network' \
'down:Bring down the interface (equivalent to '\''wg-quick down <interface>'\'')' \
'add-peer:Add a new peer' \
'rename-peer:Rename a peer' \
'add-cidr:Add a new CIDR' \
'delete-cidr:Delete a CIDR' \
'list-cidrs:List CIDRs' \
'disable-peer:Disable an enabled peer' \
'enable-peer:Enable a disabled peer' \
'add-association:Add an association between CIDRs' \
'delete-association:Delete an association between CIDRs' \
'list-associations:List existing assocations between CIDRs' \
'set-listen-port:Set the local listen port' \
'override-endpoint:Override your external endpoint that the server sends to other peers' \
'completions:Generate shell completion scripts' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'innernet commands' commands "$@"
}
(( $+functions[_innernet__add-association_commands] )) ||
_innernet__add-association_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
_describe -t commands 'innernet add-association commands' commands "$@"
}
(( $+functions[_innernet__help__add-association_commands] )) ||
_innernet__help__add-association_commands() {
local commands; commands=()
_describe -t commands 'innernet help add-association commands' commands "$@"
}
(( $+functions[_innernet__add-cidr_commands] )) ||
_innernet__add-cidr_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
_describe -t commands 'innernet add-cidr commands' commands "$@"
}
(( $+functions[_innernet__help__add-cidr_commands] )) ||
_innernet__help__add-cidr_commands() {
local commands; commands=()
_describe -t commands 'innernet help add-cidr commands' commands "$@"
}
(( $+functions[_innernet__add-peer_commands] )) ||
_innernet__add-peer_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
_describe -t commands 'innernet add-peer commands' commands "$@"
}
(( $+functions[_innernet__help__add-peer_commands] )) ||
_innernet__help__add-peer_commands() {
local commands; commands=()
_describe -t commands 'innernet help add-peer commands' commands "$@"
}
(( $+functions[_innernet__completions_commands] )) ||
_innernet__completions_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
_describe -t commands 'innernet completions commands' commands "$@"
}
(( $+functions[_innernet__help__completions_commands] )) ||
_innernet__help__completions_commands() {
local commands; commands=()
_describe -t commands 'innernet help completions commands' commands "$@"
}
(( $+functions[_innernet__delete-association_commands] )) ||
_innernet__delete-association_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
_describe -t commands 'innernet delete-association commands' commands "$@"
}
(( $+functions[_innernet__help__delete-association_commands] )) ||
_innernet__help__delete-association_commands() {
local commands; commands=()
_describe -t commands 'innernet help delete-association commands' commands "$@"
}
(( $+functions[_innernet__delete-cidr_commands] )) ||
_innernet__delete-cidr_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
_describe -t commands 'innernet delete-cidr commands' commands "$@"
}
(( $+functions[_innernet__help__delete-cidr_commands] )) ||
_innernet__help__delete-cidr_commands() {
local commands; commands=()
_describe -t commands 'innernet help delete-cidr commands' commands "$@"
}
(( $+functions[_innernet__disable-peer_commands] )) ||
_innernet__disable-peer_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
_describe -t commands 'innernet disable-peer commands' commands "$@"
}
(( $+functions[_innernet__help__disable-peer_commands] )) ||
_innernet__help__disable-peer_commands() {
local commands; commands=()
_describe -t commands 'innernet help disable-peer commands' commands "$@"
}
(( $+functions[_innernet__down_commands] )) ||
_innernet__down_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
_describe -t commands 'innernet down commands' commands "$@"
}
(( $+functions[_innernet__help__down_commands] )) ||
_innernet__help__down_commands() {
local commands; commands=()
_describe -t commands 'innernet help down commands' commands "$@"
}
(( $+functions[_innernet__enable-peer_commands] )) ||
_innernet__enable-peer_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
_describe -t commands 'innernet enable-peer commands' commands "$@"
}
(( $+functions[_innernet__help__enable-peer_commands] )) ||
_innernet__help__enable-peer_commands() {
local commands; commands=()
_describe -t commands 'innernet help enable-peer commands' commands "$@"
}
(( $+functions[_innernet__fetch_commands] )) ||
_innernet__fetch_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
_describe -t commands 'innernet fetch commands' commands "$@"
}
(( $+functions[_innernet__help__fetch_commands] )) ||
_innernet__help__fetch_commands() {
local commands; commands=()
_describe -t commands 'innernet help fetch commands' commands "$@"
}
(( $+functions[_innernet__help_commands] )) ||
_innernet__help_commands() {
local commands; commands=(
'install:Install a new innernet config' \
'show:Enumerate all innernet connections' \
'up:Bring up your local interface, and update it with latest peer list' \
'fetch:Fetch and update your local interface with the latest peer list' \
'uninstall:Uninstall an innernet network' \
'down:Bring down the interface (equivalent to '\''wg-quick down <interface>'\'')' \
'add-peer:Add a new peer' \
'rename-peer:Rename a peer' \
'add-cidr:Add a new CIDR' \
'delete-cidr:Delete a CIDR' \
'list-cidrs:List CIDRs' \
'disable-peer:Disable an enabled peer' \
'enable-peer:Enable a disabled peer' \
'add-association:Add an association between CIDRs' \
'delete-association:Delete an association between CIDRs' \
'list-associations:List existing assocations between CIDRs' \
'set-listen-port:Set the local listen port' \
'override-endpoint:Override your external endpoint that the server sends to other peers' \
'completions:Generate shell completion scripts' \
'help:Print this message or the help of the given subcommand(s)' \
)
_describe -t commands 'innernet help commands' commands "$@"
}
(( $+functions[_innernet__help__help_commands] )) ||
_innernet__help__help_commands() {
local commands; commands=()
_describe -t commands 'innernet help help commands' commands "$@"
}
(( $+functions[_innernet__help__install_commands] )) ||
_innernet__help__install_commands() {
local commands; commands=()
_describe -t commands 'innernet help install commands' commands "$@"
}
(( $+functions[_innernet__install_commands] )) ||
_innernet__install_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
_describe -t commands 'innernet install commands' commands "$@"
}
(( $+functions[_innernet__help__list-associations_commands] )) ||
_innernet__help__list-associations_commands() {
local commands; commands=()
_describe -t commands 'innernet help list-associations commands' commands "$@"
}
(( $+functions[_innernet__list-associations_commands] )) ||
_innernet__list-associations_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
_describe -t commands 'innernet list-associations commands' commands "$@"
}
(( $+functions[_innernet__help__list-cidrs_commands] )) ||
_innernet__help__list-cidrs_commands() {
local commands; commands=()
_describe -t commands 'innernet help list-cidrs commands' commands "$@"
}
2021-06-14 14:53:02 +00:00
(( $+functions[_innernet__list-cidrs_commands] )) ||
_innernet__list-cidrs_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
2021-06-14 14:53:02 +00:00
_describe -t commands 'innernet list-cidrs commands' commands "$@"
}
(( $+functions[_innernet__help__override-endpoint_commands] )) ||
_innernet__help__override-endpoint_commands() {
local commands; commands=()
_describe -t commands 'innernet help override-endpoint commands' commands "$@"
}
(( $+functions[_innernet__override-endpoint_commands] )) ||
_innernet__override-endpoint_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
_describe -t commands 'innernet override-endpoint commands' commands "$@"
}
(( $+functions[_innernet__help__rename-peer_commands] )) ||
_innernet__help__rename-peer_commands() {
local commands; commands=()
_describe -t commands 'innernet help rename-peer commands' commands "$@"
}
2021-05-31 15:23:14 +00:00
(( $+functions[_innernet__rename-peer_commands] )) ||
_innernet__rename-peer_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
2021-05-31 15:23:14 +00:00
_describe -t commands 'innernet rename-peer commands' commands "$@"
}
(( $+functions[_innernet__help__set-listen-port_commands] )) ||
_innernet__help__set-listen-port_commands() {
local commands; commands=()
_describe -t commands 'innernet help set-listen-port commands' commands "$@"
}
(( $+functions[_innernet__set-listen-port_commands] )) ||
_innernet__set-listen-port_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
_describe -t commands 'innernet set-listen-port commands' commands "$@"
}
(( $+functions[_innernet__help__show_commands] )) ||
_innernet__help__show_commands() {
local commands; commands=()
_describe -t commands 'innernet help show commands' commands "$@"
}
(( $+functions[_innernet__show_commands] )) ||
_innernet__show_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
_describe -t commands 'innernet show commands' commands "$@"
}
(( $+functions[_innernet__help__uninstall_commands] )) ||
_innernet__help__uninstall_commands() {
local commands; commands=()
_describe -t commands 'innernet help uninstall commands' commands "$@"
}
(( $+functions[_innernet__uninstall_commands] )) ||
_innernet__uninstall_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
_describe -t commands 'innernet uninstall commands' commands "$@"
}
(( $+functions[_innernet__help__up_commands] )) ||
_innernet__help__up_commands() {
local commands; commands=()
_describe -t commands 'innernet help up commands' commands "$@"
}
(( $+functions[_innernet__up_commands] )) ||
_innernet__up_commands() {
2022-01-11 20:18:19 +00:00
local commands; commands=()
_describe -t commands 'innernet up commands' commands "$@"
}
if [ "$funcstack[1]" = "_innernet" ]; then
_innernet "$@"
else
compdef _innernet innernet
fi