zsh: complete all supported git clone parameters for yadm clone
This commit is contained in:
parent
f45e66d4da
commit
fb56513d17
1 changed files with 5 additions and 3 deletions
|
@ -19,10 +19,12 @@ _yadm-clone() {
|
||||||
_arguments \
|
_arguments \
|
||||||
'(--bootstrap --no-bootstrap)--bootstrap[force bootstrap, without prompt]' \
|
'(--bootstrap --no-bootstrap)--bootstrap[force bootstrap, without prompt]' \
|
||||||
'(--bootstrap --no-bootstrap)--no-bootstrap[prevent bootstrap, without prompt]' \
|
'(--bootstrap --no-bootstrap)--no-bootstrap[prevent bootstrap, without prompt]' \
|
||||||
'-b[branch name]:' \
|
|
||||||
'-f[force overwrite of existing repository]' \
|
'-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() {
|
_yadm-config() {
|
||||||
|
|
Loading…
Reference in a new issue