mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-17 16:00:19 +00:00
#23 github: complete 'browse' command
This commit is contained in:
@@ -60,8 +60,10 @@ _github() {
|
||||
_message 'no more arguments' && ret=0
|
||||
;;
|
||||
(browse)
|
||||
# TODO Not implemented
|
||||
_message "${words[1]} command argument" && ret=0
|
||||
_arguments \
|
||||
'1: :_github_users' \
|
||||
'2: :_github_branches' \
|
||||
&& ret=0
|
||||
;;
|
||||
(clone)
|
||||
# TODO Not implemented
|
||||
@@ -126,4 +128,16 @@ _github() {
|
||||
return ret
|
||||
}
|
||||
|
||||
(( $+functions[_github_users] )) ||
|
||||
_github_users() {
|
||||
# TODO Not implemented
|
||||
_message -e users 'user'
|
||||
}
|
||||
|
||||
(( $+functions[_github_branches] )) ||
|
||||
_github_branches() {
|
||||
# TODO Not implemented
|
||||
_message -e branches 'branch'
|
||||
}
|
||||
|
||||
_github "$@"
|
||||
|
||||
Reference in New Issue
Block a user