COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD - 1]}"
- opts="-h --help -v --version --check"
+ opts="-h --help -v --version"
commands="check clean"
# 1. First argument: complete commands and global options
complete -c git-remote-gcrypt -s h -l help -d 'Show help message'
complete -c git-remote-gcrypt -s v -l version -d 'Show version information'
-complete -c git-remote-gcrypt -l check -d '(Legacy) Check if URL is a gcrypt repository' -r -F
# Subcommands
complete -c git-remote-gcrypt -f -n "not __fish_seen_subcommand_from check clean" -a 'check' -d 'Check if URL is a gcrypt repository'
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD - 1]}"
- opts="-h --help -v --version --check"
+ opts="-h --help -v --version"
commands="{commands}"
# 1. First argument: complete commands and global options
complete -c git-remote-gcrypt -s h -l help -d 'Show help message'
complete -c git-remote-gcrypt -s v -l version -d 'Show version information'
-complete -c git-remote-gcrypt -l check -d '(Legacy) Check if URL is a gcrypt repository' -r -F
# Subcommands
complete -c git-remote-gcrypt -f -n "not __fish_seen_subcommand_from {not_sc_list}" -a 'check' -d 'Check if URL is a gcrypt repository'
args=(
'(- *)'{-h,--help}'[show help message]'
'(- *)'{-v,--version}'[show version information]'
- '--check[check if URL is a gcrypt repository]:URL:_files'
'1:command:({commands})'
'*::subcommand arguments:->args'
)
args=(
'(- *)'{-h,--help}'[show help message]'
'(- *)'{-v,--version}'[show version information]'
- '--check[check if URL is a gcrypt repository]:URL:_files'
'1:command:(check clean)'
'*::subcommand arguments:->args'
)