−self/commands

This commit is contained in:
Marc Beninca 2025-07-07 03:47:55 +02:00
parent 950f54ecdc
commit 60ccba2fd5
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,19 +1,6 @@
# self
# module
# ╭──────┬──────────╮
# │ self │ commands │
# ╰──────┴──────────╯
# get commands from root
rwx_self_commands() {
grep \
--directories "recurse" \
--no-filename \
"^${RWX_SELF_COMMAND}" "${RWX_ROOT_SYSTEM}" |
cut --delimiter "(" --fields 1 |
sed "s|^${RWX_SELF_COMMAND}||"
}
# ╭──────╮
# │ self │
# ╰──────╯
# ╭──────┬──────╮
# │ self │ help │
@ -44,8 +31,8 @@ rwx_self_init() {
# │ self │ install │
# ╰──────┴─────────╯
_rwx_cmd_rwx_install() { rwx_self_install "${@}"; }
rwx_self_install() {
#= rwx_install
rwx_code_install() {
local target="${1}"
local command file name root
# code