diff --git a/spcd/main.sh b/spcd/main.sh index f4a93e6..8e25da0 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -176,6 +176,14 @@ spcd_frame_shut() { # │ internal │ os │ # ╰──────────┴────╯ +spcd_os_cat() { + spcd_cat__file="${1}" + if [ -n "${spcd_cat__file}" ]; then + spcd_frame_open "${spcd_cat__file}" + cat "${spcd_cat__file}" || exit + spcd_frame_shut "${spcd_cat__file}" + fi +} # ╭──────────┬──────╮ # │ internal │ rule │ @@ -1149,15 +1157,6 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}" # │ functions │ # ╰───────────╯ -spcd_os_cat() { - spcd_cat__file="${1}" - if [ -n "${spcd_cat__file}" ]; then - spcd_frame_open "${spcd_cat__file}" - cat "${spcd_cat__file}" || exit - spcd_frame_shut "${spcd_cat__file}" - fi -} - spcd_install_package() { spcd_install_package__name="${1}" if [ -n "${spcd_install_package__name}" ]; then