mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-22 15:55:09 +00:00
refactor(easy-docker-wizard): centralize shared flow constants
This commit is contained in:
parent
1f1d5c7133
commit
67efd3367e
4 changed files with 10 additions and 10 deletions
|
|
@ -4,6 +4,8 @@ load_easy_docker_wizard_common_modules() {
|
||||||
local wizard_dir=""
|
local wizard_dir=""
|
||||||
wizard_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
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
|
# shellcheck source=scripts/easy-docker/lib/app/wizard/common/core.sh
|
||||||
source "${wizard_dir}/common/core.sh"
|
source "${wizard_dir}/common/core.sh"
|
||||||
# shellcheck source=scripts/easy-docker/lib/app/wizard/common/helpers.sh
|
# shellcheck source=scripts/easy-docker/lib/app/wizard/common/helpers.sh
|
||||||
|
|
|
||||||
8
scripts/easy-docker/lib/app/wizard/common/constants.sh
Executable file
8
scripts/easy-docker/lib/app/wizard/common/constants.sh
Executable 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
|
||||||
|
|
@ -1,10 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# shellcheck disable=SC2034
|
|
||||||
readonly FLOW_CONTINUE=0
|
|
||||||
# shellcheck disable=SC2034
|
|
||||||
readonly FLOW_ABORT_INPUT=12
|
|
||||||
|
|
||||||
get_easy_docker_repo_root() {
|
get_easy_docker_repo_root() {
|
||||||
local app_lib_dir=""
|
local app_lib_dir=""
|
||||||
app_lib_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
app_lib_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/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() {
|
handle_single_host_stack_flow() {
|
||||||
local stack_dir="${1}"
|
local stack_dir="${1}"
|
||||||
local proxy_mode=""
|
local proxy_mode=""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue