File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,15 @@ function _ghq () {
4
4
5
5
case $cword in
6
6
1)
7
- COMPREPLY=( $(compgen -W "get list" -- $cur) );;
7
+ COMPREPLY=( $(compgen -W "get list rm " -- $cur) );;
8
8
2)
9
9
case $prev in
10
10
get)
11
11
COMPREPLY=( $(compgen -W "$(ghq list --unique)" -- $cur) );;
12
12
list)
13
13
COMPREPLY=( $(compgen -W "$(ghq list)" -- $cur) );;
14
+ rm)
15
+ COMPREPLY=( $(compgen -W "$(ghq list)" -- $cur) );;
14
16
esac;;
15
17
*)
16
18
COMPREPLY=( $(compgen -W "$(ls)" -- $cur) );;
Original file line number Diff line number Diff line change @@ -51,6 +51,12 @@ function _ghq () {
51
51
'(-)*:: :->null_state' \
52
52
&& ret=0
53
53
;;
54
+ (rm)
55
+ _arguments -C \
56
+ '--dry-run[Do not remove actually]' \
57
+ '(-)*:: :->null_state' \
58
+ && ret=0
59
+ ;;
54
60
(help|h)
55
61
__ghq_commands && ret=0
56
62
;;
You can’t perform that action at this time.
0 commit comments