aboutsummaryrefslogtreecommitdiffstats
path: root/misc/zsh_completion
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-06-22 13:40:17 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-06-24 21:30:45 +0200
commite511f3d885e5e7f15d3b7f8e500380f0c63bc377 (patch)
treeb2a2c0207cd1901401e9c902620b720331105095 /misc/zsh_completion
parenta58ac69c1f9246a1e544f0032f8dee8e8a769b04 (diff)
downloadgit-bug-e511f3d885e5e7f15d3b7f8e500380f0c63bc377.tar.gz
[misc] update man docs and completion scripts
[cache] BugCache: Fix set metadata raw [bridge/github] Fix graphql input objects
Diffstat (limited to 'misc/zsh_completion')
-rw-r--r--misc/zsh_completion/git-bug49
1 files changed, 49 insertions, 0 deletions
diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug
index ed676724..97fb27c5 100644
--- a/misc/zsh_completion/git-bug
+++ b/misc/zsh_completion/git-bug
@@ -1,3 +1,4 @@
+<<<<<<< HEAD
#compdef _git-bug git-bug
@@ -394,3 +395,51 @@ function _git-bug_webui {
'(-p --port)'{-p,--port}'[Port to listen to (default is random)]:'
}
+=======
+#compdef git-bug
+
+_arguments \
+ '1: :->level1' \
+ '2: :->level2' \
+ '3: :_files'
+case $state in
+ level1)
+ case $words[1] in
+ git-bug)
+ _arguments '1: :(add bridge commands comment deselect label ls ls-id ls-label pull push select show status termui title user version webui)'
+ ;;
+ *)
+ _arguments '*: :_files'
+ ;;
+ esac
+ ;;
+ level2)
+ case $words[2] in
+ bridge)
+ _arguments '2: :(configure pull push rm)'
+ ;;
+ comment)
+ _arguments '2: :(add)'
+ ;;
+ label)
+ _arguments '2: :(add rm)'
+ ;;
+ status)
+ _arguments '2: :(close open)'
+ ;;
+ title)
+ _arguments '2: :(edit)'
+ ;;
+ user)
+ _arguments '2: :(adopt create ls)'
+ ;;
+ *)
+ _arguments '*: :_files'
+ ;;
+ esac
+ ;;
+ *)
+ _arguments '*: :_files'
+ ;;
+esac
+>>>>>>> 3daac46... update man docs and completion scripts