client: lib_docker: add CLI version for all platforms

Prints meaningful output of all dependencies and their respective versions.
This commit is contained in:
2024-06-19 16:16:39 -07:00
parent 00d4a8fa77
commit dddd8a90a2
4 changed files with 248 additions and 0 deletions

View File

@@ -71,6 +71,8 @@ function main()
run \e[34;3mSpawn a container with given command (container removed on exit)\e[0m
shell \e[34;3mOpen shell into running container\e[0m
version \e[34;3mPrint current version of 'docker-finance' and its dependencies\e[0m
Dev-tools platform:
license \e[34;3mAdd a license to a docker-finance file\e[0m
@@ -112,6 +114,9 @@ function main()
\e[37;2m# Backup image, delete old image, build new image\e[0m
$ docker-finance backup && docker-finance rm && docker-finance build
\e[37;2m# Print current version of 'docker-finance' and client/container ('finance') dependencies\e[0m
$ docker-finance version
\e[37;2m#\e[0m
\e[37;2m# Dev-tools platform\e[0m
\e[37;2m#\e[0m
@@ -130,6 +135,9 @@ function main()
\e[37;2m# Generate Doxygen for docker-finance source\e[0m
$ docker-finance_dev-tools doxygen gen
\e[37;2m# Print current version of 'docker-finance' and client/container ('dev-tools') dependencies\e[0m
$ docker-finance_dev-tools version
"
#
@@ -186,6 +194,9 @@ function main()
doxygen)
lib_docker::doxygen "${@:3}"
;;
version)
lib_docker::version "${@:3}"
;;
*)
lib_utils::die_usage "$_usage"
;;