Skip to content

Commit

Permalink
contrib: add bashcompletion for layers command
Browse files Browse the repository at this point in the history
  • Loading branch information
rhubert committed Jun 3, 2024
1 parent 4c95e3f commit a317c20
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion contrib/bash-completion/bob
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ __bob_complete_dir()
}

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

# Complete a Bob path
#
Expand Down Expand Up @@ -386,6 +386,21 @@ __bob_status()
__bob_complete_path "--attic --develop --recursive --no-sandbox --release --sandbox --show-clean --show-overrides --verbose -D -c -r -v"
}

__bob_layers_status()
{
__bob_complete_path "-c -D -v"
}

__bob_layers_update()
{
__bob_complete_path "-c -D -v"
}

__bob_layers()
{
__bob_subcommands "status update" "layers"
}

__bob_show()
{
if [[ "$prev" = "--format" ]] ; then
Expand Down

0 comments on commit a317c20

Please sign in to comment.