mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-17 16:00:19 +00:00
#23 github: complete 'clone' command
This commit is contained in:
@@ -66,8 +66,13 @@ _github() {
|
||||
&& ret=0
|
||||
;;
|
||||
(clone)
|
||||
# TODO Not implemented
|
||||
_message "${words[1]} command argument" && ret=0
|
||||
_arguments \
|
||||
'1: :_github_users' \
|
||||
'2: :_github_repos' \
|
||||
'3: :_files -/' \
|
||||
'--search[search for user or repo and clone selected repository]:user or repo' \
|
||||
'--ssh[clone using the git@github.com style url]' \
|
||||
&& ret=0
|
||||
;;
|
||||
(config)
|
||||
# TODO Not implemented
|
||||
@@ -134,6 +139,12 @@ _github_users() {
|
||||
_message -e users 'user'
|
||||
}
|
||||
|
||||
(( $+functions[_github_repos] )) ||
|
||||
_github_repos() {
|
||||
# TODO Not implemented
|
||||
_message -e repos 'repo'
|
||||
}
|
||||
|
||||
(( $+functions[_github_branches] )) ||
|
||||
_github_branches() {
|
||||
# TODO Not implemented
|
||||
|
||||
Reference in New Issue
Block a user