code/init

This commit is contained in:
Marc Beninca 2025-07-08 06:09:14 +02:00
parent 1345f07e16
commit 3dceffeea5
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 8 additions and 14 deletions

View file

@ -215,6 +215,11 @@ rwx_code_main() {
fi
# context / shell
else
rwx_self_init
# run interactive extras
if rwx_shell_interactive; then
# help
rwx_log
rwx_self_help
fi
fi
}

View file

@ -14,23 +14,11 @@ rwx_self_help() {
" u__… = user"
}
# ╭──────┬──────╮
# │ self │ init │
# ╰──────┴──────╯
rwx_self_init() {
# run interactive extras
if rwx_shell_interactive; then
# help
rwx_log
rwx_self_help
fi
}
# ╭──────┬────────╮
# │ self │ subset │
# ╰──────┴────────╯
# TODO move to code module
rwx_self_subset() {
local argument file root
for argument in "${@}"; do
@ -51,6 +39,7 @@ rwx_self_subset() {
# │ self │ write │
# ╰──────┴───────╯
# TODO move to code module
rwx_self_write() {
local target="${1}"
if [ -n "${target}" ]; then