functions/step

This commit is contained in:
Marc Beninca 2024-08-25 14:59:50 +02:00
parent 54e396368f
commit e74984a6cb
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -866,6 +866,23 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}"
"${SPCD_PYTHON_ALIAS}" -m "${spcd_stp__name}"
}
# ╭───────────┬──────╮
# │ functions │ step │
# ╰───────────┴──────╯
spcd_step() {
SPCD_STEP=$((SPCD_STEP + 1))
SPCD_STEP_TEXT="${*}"
unset SPCD_SUBSTEP SPCD_SUBSTEP_TEXT
spcd_banner
}
spcd_substep() {
SPCD_SUBSTEP=$((SPCD_SUBSTEP + 1))
SPCD_SUBSTEP_TEXT="${*}"
spcd_banner
}
# ╭───────────╮
# │ functions │
# ╰───────────╯
@ -1016,19 +1033,6 @@ spcd_split() {
echo "${SPCD_SPLT}"
}
spcd_step() {
SPCD_STEP=$((SPCD_STEP + 1))
SPCD_STEP_TEXT="${*}"
unset SPCD_SUBSTEP SPCD_SUBSTEP_TEXT
spcd_banner
}
spcd_substep() {
SPCD_SUBSTEP=$((SPCD_SUBSTEP + 1))
SPCD_SUBSTEP_TEXT="${*}"
spcd_banner
}
spcd_write() {
spcd_write__file="${1}"
spcd_write__text="${2}"
@ -1097,7 +1101,6 @@ spcd_fill() {
# │ internal │ banner │
# ╰──────────┴────────╯
SPCD_BANNER=1
SPCD_BANNER_DOWN_AND_HORIZONTAL="┬"
SPCD_BANNER_DOWN_AND_LEFT="╮"
SPCD_BANNER_DOWN_AND_RIGHT="╭"
@ -1184,8 +1187,14 @@ spcd_banner_unset() {
unset SPCD_BANNER_TOP SPCD_BANNER_MIDDLE SPCD_BANNER_BOTTOM
}
# ╭──────────┬─────╮
# │ internal │ run │
# ╰──────────┴─────╯
# ╭──────────┬──────╮
# │ internal │ step │
# ╰──────────┴──────╯
SPCD_STEP=1
# ╭──────────╮
# │ internal │
# ╰──────────╯
spcd_main