forked from EvergreenCrypto/docker-finance
client: add plugins feature
This commit is contained in:
@@ -77,6 +77,7 @@ 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
|
||||
|
||||
plugins \e[34;3mExecute given plugin available in plugins' path\e[0m
|
||||
version \e[34;3mPrint current version of 'docker-finance' and its dependencies\e[0m
|
||||
|
||||
Dev-tools platform:
|
||||
@@ -207,6 +208,9 @@ function main()
|
||||
version)
|
||||
lib_docker::version "${@:3}"
|
||||
;;
|
||||
plugins)
|
||||
lib_plugins::plugins "${@:3}"
|
||||
;;
|
||||
*)
|
||||
lib_utils::die_usage "$_usage"
|
||||
;;
|
||||
|
||||
@@ -29,6 +29,9 @@ source "${DOCKER_FINANCE_CLIENT_REPO}/client/src/docker/lib/internal/lib_docker.
|
||||
# Environment generation
|
||||
source "${DOCKER_FINANCE_CLIENT_REPO}/client/src/docker/lib/internal/lib_gen.bash" || exit 1
|
||||
|
||||
# Plugins support
|
||||
source "${DOCKER_FINANCE_CLIENT_REPO}/client/src/docker/lib/internal/lib_plugins.bash" || exit 1
|
||||
|
||||
# Development tools
|
||||
source "${DOCKER_FINANCE_CLIENT_REPO}/client/src/docker/lib/internal/dev-tools/lib_doxygen.bash" || exit 1
|
||||
source "${DOCKER_FINANCE_CLIENT_REPO}/client/src/docker/lib/internal/dev-tools/lib_license.bash" || exit 1
|
||||
@@ -276,4 +279,14 @@ function lib_docker::version()
|
||||
lib_utils::catch $?
|
||||
}
|
||||
|
||||
#
|
||||
# Executes given client plugin
|
||||
#
|
||||
|
||||
function lib_docker::plugins()
|
||||
{
|
||||
lib_plugins::__plugins "$@"
|
||||
lib_utils::catch $?
|
||||
}
|
||||
|
||||
# vim: sw=2 sts=2 si ai et
|
||||
|
||||
Reference in New Issue
Block a user