client: docker: add exec wrapper, update completion

This commit is contained in:
2025-11-24 17:33:16 -08:00
parent a75f8add47
commit 221a5f7049
4 changed files with 21 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ function docker-finance::completion()
mapfile -t _images < <(docker images --format "{{.Repository}}:{{.Tag}}" --filter=reference='docker-finance/*/*:*' | cut -d'/' -f2- | grep $USER)
declare -r _images
local -r _commands=("gen" "edit" "build" "update" "backup" "rm" "up" "down" "start" "stop" "run" "shell" "version" "license" "linter" "doxygen" "plugins")
local -r _commands=("gen" "edit" "build" "update" "backup" "rm" "up" "down" "start" "stop" "run" "shell" "exec" "version" "license" "linter" "doxygen" "plugins")
local _reply
@@ -86,7 +86,7 @@ function docker-finance::completion()
update)
mapfile -t _reply < <(compgen -W "help type${global_arg_delim_2}" -- "$_cur")
;;
backup | rm | up | down | start | stop)
backup | rm | up | down | start | stop | exec)
# TODO: _currently no-op
;;
shell)