zsh: complete all supported git clone parameters for yadm clone

This commit is contained in:
Erik Flodin 2021-01-03 11:10:51 +01:00
parent f45e66d4da
commit fb56513d17
No known key found for this signature in database
GPG Key ID: 420A7C865EE3F85F
1 changed files with 5 additions and 3 deletions

View File

@ -19,10 +19,12 @@ _yadm-clone() {
_arguments \
'(--bootstrap --no-bootstrap)--bootstrap[force bootstrap, without prompt]' \
'(--bootstrap --no-bootstrap)--no-bootstrap[prevent bootstrap, without prompt]' \
'-b[branch name]:' \
'-f[force overwrite of existing repository]' \
'-w[work tree path]: :_files -/' \
'*:'
'-w[yadm work tree path]: :_files -/'
local curcontext="${curcontext%:*:*}:git:"
words=("git" "${words[@]}") CURRENT=$((CURRENT + 1)) service=git _git
}
_yadm-config() {