spcd_banner

This commit is contained in:
Marc Beninca 2024-08-21 11:40:44 +02:00
parent 3660bd23a2
commit 96a35fdc8e
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

12
spcd.sh
View file

@ -827,6 +827,13 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}"
# functions
spcd_banner() {
echo "\
${SPCD_DOWN}
${SPCD_VERT} ${*}
${SPCD___UP}"
}
spcd_cat() {
spcd_cat__file="${1}"
if [ -n "${spcd_cat__file}" ]; then
@ -945,10 +952,7 @@ spcd_split() {
spcd_step() {
SPCD_STEP=$((SPCD_STEP + 1))
SPCD_STEP_TEXT="${*}"
echo "\
${SPCD_DOWN}
${SPCD_VERT} ${SPCD_STEP} ${SPCD_STEP_TEXT}
${SPCD___UP}"
spcd_banner "${SPCD_STEP}" "${SPCD_STEP_TEXT}"
}
spcd_write() {