client: src: refactor environment/gen handler

- Moves environment handling from `lib_gen` to `lib_env`
- Related refactoring
This commit is contained in:
2024-09-22 18:31:55 -07:00
parent b2fcb02225
commit d8222c60fb
4 changed files with 351 additions and 298 deletions

View File

@@ -26,7 +26,10 @@
# Docker impl
source "${DOCKER_FINANCE_CLIENT_REPO}/client/src/docker/lib/internal/lib_docker.bash" || exit 1
# Environment generation
# Runtime environment handler
source "${DOCKER_FINANCE_CLIENT_REPO}/client/src/docker/lib/internal/lib_env.bash" || exit 1
# Environment layout generator
source "${DOCKER_FINANCE_CLIENT_REPO}/client/src/docker/lib/internal/lib_gen.bash" || exit 1
# Plugins support
@@ -114,8 +117,8 @@ function lib_docker::docker()
declare -gxr global_usage="$global_basename ${global_platform}${global_arg_delim_1}${global_user}:${global_tag} $global_command"
lib_utils::print_debug "global_usage=${global_usage}"
# Setup remaining client/container globals
lib_gen::gen || return $?
# Setup remaining environment globals
lib_env::env || return $?
# Remaining "constructor" implementation
lib_docker::__docker || return $?
@@ -129,7 +132,7 @@ function lib_docker::docker()
function lib_docker::gen()
{
lib_gen::generate
lib_gen::gen
lib_utils::catch $?
}