rule,split
This commit is contained in:
parent
bdb645eb91
commit
9e38e7224d
1 changed files with 16 additions and 10 deletions
26
spcd/main.sh
26
spcd/main.sh
|
@ -172,6 +172,14 @@ spcd_frame_shut() {
|
|||
echo "${SPCD_FRAME_UP_AND_RIGHT}${1}"
|
||||
}
|
||||
|
||||
# ╭──────────┬──────╮
|
||||
# │ internal │ rule │
|
||||
# ╰──────────┴──────╯
|
||||
|
||||
SPCD_RULE_HORIZONTAL="─"
|
||||
SPCD_RULE_LEFT="╴"
|
||||
SPCD_RULE_RIGHT="╶"
|
||||
|
||||
# ╭──────────┬──────╮
|
||||
# │ internal │ step │
|
||||
# ╰──────────┴──────╯
|
||||
|
@ -262,6 +270,14 @@ spcd_os_rm() {
|
|||
fi
|
||||
}
|
||||
|
||||
# ╭───────────┬───────╮
|
||||
# │ functions │ split │
|
||||
# ╰───────────┴───────╯
|
||||
|
||||
spcd_split() {
|
||||
echo "${SPCD_RULE_RIGHT}${SPCD_RULE_HORIZONTAL}${SPCD_RULE_LEFT}"
|
||||
}
|
||||
|
||||
# ╭───────────┬──────╮
|
||||
# │ functions │ step │
|
||||
# ╰───────────┴──────╯
|
||||
|
@ -1193,10 +1209,6 @@ spcd_sed() {
|
|||
fi
|
||||
}
|
||||
|
||||
spcd_split() {
|
||||
echo "${SPCD_SPLT}"
|
||||
}
|
||||
|
||||
spcd_write() {
|
||||
spcd_write__file="${1}"
|
||||
spcd_write__text="${2}"
|
||||
|
@ -1210,15 +1222,9 @@ spcd_write() {
|
|||
|
||||
# constants
|
||||
|
||||
SPCD_BOX_RIGHT="╶"
|
||||
|
||||
SPCD_PYTHON_VENV="/opt/venv"
|
||||
SPCD_PYTHON_VENV_BINARIES="${SPCD_PYTHON_VENV}/bin"
|
||||
|
||||
SPCD_HORIZONTAL="────╌╌╌╌┄┄┄┄┈┈┈┈"
|
||||
|
||||
SPCD_SPLT="${SPCD_BOX_RIGHT}${SPCD_HORIZONTAL}"
|
||||
|
||||
# ╭──────╮
|
||||
# │ main │
|
||||
# ╰──────╯
|
||||
|
|
Loading…
Reference in a new issue