#23 github: complete 'clone' command

This commit is contained in:
Julien Nicoulaud 2011-09-02 10:35:25 +02:00
parent 8603aeaa13
commit 7dd0aac760
1 changed files with 13 additions and 2 deletions

15
_github
View File

@ -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