Skip to content

Commit 121337b

Browse files
committed
bash-completion: add bob-init command
1 parent a9c9a6f commit 121337b

File tree

1 file changed

+14
-2
lines changed
  • contrib/bash-completion

1 file changed

+14
-2
lines changed

contrib/bash-completion/bob

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ __bob_complete_dir()
2929
compgen -d -P "$2" -S / -- "$1" ) )
3030
}
3131

32-
__bob_commands="build dev clean graph help jenkins ls project status query-scm \
33-
query-recipe query-path query-meta show"
32+
__bob_commands="build dev clean graph help init jenkins ls project status \
33+
query-scm query-recipe query-path query-meta show"
3434

3535
# Complete a Bob path
3636
#
@@ -162,6 +162,18 @@ __bob_ls()
162162
__bob_complete_path "-a --all -c -D -d --direct --no-sandbox -o --origin -p --prefixed -r --recursive --sandbox -u --unsorted"
163163
}
164164

165+
__bob_init()
166+
{
167+
case "$cur" in
168+
-*)
169+
__bob_complete_words "-h --help"
170+
;;
171+
*)
172+
__bob_complete_dir "$cur"
173+
;;
174+
esac
175+
}
176+
165177
__bob_jenkins_add()
166178
{
167179
sandbox="--sandbox"

0 commit comments

Comments
 (0)