blob: 077fa1810b68a7d37375e9117cdaa4d6047a34f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#compdef git-bug
_arguments \
'1: :->level1' \
'2: :->level2' \
'3: :_files'
case $state in
level1)
case $words[1] in
git-bug)
_arguments '1: :(add commands comment label ls ls-label pull push select show status termui title webui)'
;;
*)
_arguments '*: :_files'
;;
esac
;;
level2)
case $words[2] in
comment)
_arguments '2: :(add)'
;;
label)
_arguments '2: :(add rm)'
;;
status)
_arguments '2: :(close open)'
;;
title)
_arguments '2: :(edit)'
;;
*)
_arguments '*: :_files'
;;
esac
;;
*)
_arguments '*: :_files'
;;
esac
|