forked from EvergreenCrypto/docker-finance
client: completion: add update command
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# docker-finance | modern accounting for the power-user
|
# docker-finance | modern accounting for the power-user
|
||||||
#
|
#
|
||||||
# Copyright (C) 2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
# Copyright (C) 2024-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -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)
|
mapfile -t _images < <(docker images --format "{{.Repository}}:{{.Tag}}" --filter=reference='docker-finance/*/*:*' | cut -d'/' -f2- | grep $USER)
|
||||||
declare -r _images
|
declare -r _images
|
||||||
|
|
||||||
local -r _commands=("gen" "edit" "build" "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" "version" "license" "linter" "doxygen" "plugins")
|
||||||
|
|
||||||
local _reply
|
local _reply
|
||||||
|
|
||||||
@@ -83,6 +83,9 @@ function docker-finance::completion()
|
|||||||
build)
|
build)
|
||||||
mapfile -t _reply < <(compgen -W "help type${global_arg_delim_2}" -- "$_cur")
|
mapfile -t _reply < <(compgen -W "help type${global_arg_delim_2}" -- "$_cur")
|
||||||
;;
|
;;
|
||||||
|
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)
|
||||||
# TODO: _currently no-op
|
# TODO: _currently no-op
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user