Skip to content

Commit c62d741

Browse files
committed
bash-completion: add bob-layers-ls completion
1 parent c4a6ee4 commit c62d741

File tree

1 file changed

+12
-1
lines changed
  • contrib/bash-completion

1 file changed

+12
-1
lines changed

contrib/bash-completion/bob

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,20 @@ __bob_layers_update()
396396
__bob_complete_words "-D -v -lc --attic --no-attic"
397397
}
398398

399+
__bob_layers_ls()
400+
{
401+
if [[ "$prev" = "--format" ]] ; then
402+
__bob_complete_words "yaml json flat"
403+
elif [[ "$prev" = "--indent" ]] ; then
404+
COMPREPLY=( )
405+
else
406+
__bob_complete_words "-D -lc --indent --no-indent --format"
407+
fi
408+
}
409+
399410
__bob_layers()
400411
{
401-
__bob_subcommands "status update" "layers"
412+
__bob_subcommands "status update ls" "layers"
402413
}
403414

404415
__bob_show()

0 commit comments

Comments
 (0)