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