refactor(easy-docker-wizard): centralize shared flow constants

This commit is contained in:
RocketQuack 2026-02-28 00:20:34 +01:00
parent 1f1d5c7133
commit 67efd3367e
4 changed files with 10 additions and 10 deletions

View file

@ -4,6 +4,8 @@ load_easy_docker_wizard_common_modules() {
local wizard_dir=""
wizard_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# shellcheck source=scripts/easy-docker/lib/app/wizard/common/constants.sh
source "${wizard_dir}/common/constants.sh"
# shellcheck source=scripts/easy-docker/lib/app/wizard/common/core.sh
source "${wizard_dir}/common/core.sh"
# shellcheck source=scripts/easy-docker/lib/app/wizard/common/helpers.sh

View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Shared flow/status constants used across sourced wizard modules.
# shellcheck disable=SC2034
readonly FLOW_CONTINUE=0
readonly FLOW_BACK_TO_MAIN=10
readonly FLOW_EXIT_APP=11
readonly FLOW_ABORT_INPUT=12

View file

@ -1,10 +1,5 @@
#!/usr/bin/env bash
# shellcheck disable=SC2034
readonly FLOW_CONTINUE=0
# shellcheck disable=SC2034
readonly FLOW_ABORT_INPUT=12
get_easy_docker_repo_root() {
local app_lib_dir=""
app_lib_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

View file

@ -1,10 +1,5 @@
#!/usr/bin/env bash
# shellcheck disable=SC2034
readonly FLOW_BACK_TO_MAIN=10
# shellcheck disable=SC2034
readonly FLOW_EXIT_APP=11
handle_single_host_stack_flow() {
local stack_dir="${1}"
local proxy_mode=""