This commit is contained in:
Marc Beninca 2024-08-27 12:26:10 +02:00
parent 38108fe867
commit e8fc2c7f83
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -36,9 +36,9 @@
[ -n "${SPCD_URL_UBUNTU}" ] ||
SPCD_URL_UBUNTU="https://ubuntu.mirrors.ovh.net/ubuntu"
# ╭───────────
# │ internals
# ╰───────────
# ╭───
# │ _
# ╰───
_spcd_fill() {
_spcd_fill__index=${1}
@ -49,9 +49,9 @@ _spcd_fill() {
unset _spcd_fill__index
}
# ╭───────────┬────────╮
# │ internals │ banner │
# ╰───────────┴────────╯
# ╭───┬────────╮
# │ _ │ banner │
# ╰───┴────────╯
_SPCD_BANNER_DOWN_AND_HORIZONTAL="┬"
_SPCD_BANNER_DOWN_AND_LEFT="╮"
@ -156,16 +156,16 @@ _spcd_banner_wipe() {
__SPCD_BANNER_BOTTOM
}
# ╭───────────┬───────╮
# │ internals │ error │
# ╰───────────┴───────╯
# ╭───┬───────╮
# │ _ │ error │
# ╰───┴───────╯
_SPCD_ERROR_CI=1
_SPCD_ERROR_OS=2
# ╭───────────┬───────╮
# │ internals │ frame │
# ╰───────────┴───────╯
# ╭───┬───────╮
# │ _ │ frame │
# ╰───┴───────╯
_SPCD_FRAME_TOP="╭╴"
_SPCD_FRAME_BOTTOM="╰╴"
@ -178,9 +178,9 @@ _spcd_frame_shut() {
echo "${_SPCD_FRAME_BOTTOM}${1}"
}
# ╭───────────┬────╮
# │ internals │ os │
# ╰───────────┴────╯
# ╭───┬────╮
# │ _ │ os │
# ╰───┴────╯
_spcd_os_cat() {
if [ -n "${1}" ]; then
@ -190,17 +190,17 @@ _spcd_os_cat() {
fi
}
# ╭───────────┬──────╮
# │ internals │ rule │
# ╰───────────┴──────╯
# ╭───┬──────╮
# │ _ │ rule │
# ╰───┴──────╯
_SPCD_RULE_LEFT="╶"
_SPCD_RULE_MIDDLE="─"
_SPCD_RULE_RIGHT="╴"
# ╭───────────┬──────╮
# │ internals │ step │
# ╰───────────┴──────╯
# ╭───┬──────╮
# │ _ │ step │
# ╰───┴──────╯
_spcd_step_wipe() {
unset \