diff --git a/spcd/main.sh b/spcd/main.sh index c938314..bf7a353 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -157,6 +157,21 @@ spcd_banner_unset() { SPCD_ERROR_CI=1 SPCD_ERROR_OS=2 +# ╭──────────┬───────╮ +# │ internal │ frame │ +# ╰──────────┴───────╯ + +SPCD_FRAME_DOWN_AND_RIGHT="╭" +SPCD_FRAME_UP_AND_RIGHT="╰" + +spcd_open() { + echo "${SPCD_FRAME_DOWN_AND_RIGHT}${*}" +} + +spcd_shut() { + echo "${SPCD_FRAME_UP_AND_RIGHT}${*}" +} + # ╭──────────┬──────╮ # │ internal │ step │ # ╰──────────┴──────╯ @@ -1121,10 +1136,6 @@ spcd_ls() { fi } -spcd_open() { - echo "${SPCD_OPEN}${*}" -} - spcd_openssl() { spcd_openssl__file="${1}" if [ -f "${spcd_openssl__file}" ]; then @@ -1158,10 +1169,6 @@ spcd_sed() { fi } -spcd_shut() { - echo "${SPCD_SHUT}${*}" -} - spcd_split() { echo "${SPCD_SPLT}" }