types
This commit is contained in:
parent
ec9907d450
commit
d367548c08
2 changed files with 7 additions and 2 deletions
|
@ -56,20 +56,24 @@ BEGIN {
|
|||
}
|
||||
} else if (match($0, RE_SET, m)) {
|
||||
if (m[1] == target) {
|
||||
print "set"
|
||||
output(m[1])
|
||||
} else {
|
||||
reset()
|
||||
}
|
||||
} else if (match($0, RE_FUNCTION, m)) {
|
||||
if (alias) {
|
||||
print "alias"
|
||||
output(target)
|
||||
} else if (m[1] == target) {
|
||||
print "function"
|
||||
output(target)
|
||||
} else {
|
||||
reset()
|
||||
}
|
||||
} else {
|
||||
if (module) {
|
||||
print "module"
|
||||
output(target)
|
||||
} else {
|
||||
reset()
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
#! /usr/bin/env sh
|
||||
# main module
|
||||
|
||||
# ╭──────╮
|
||||
# │ main │
|
||||
# ╰──────╯
|
||||
# main module
|
||||
|
||||
# ╭──────┬───────────╮
|
||||
# │ main │ constants │
|
||||
|
@ -11,8 +10,10 @@
|
|||
|
||||
# name of the entrypoint file
|
||||
RWX_MAIN_NAME="main.sh"
|
||||
# name of the project itself
|
||||
RWX_SELF_NAME="rwx"
|
||||
|
||||
# prefix for command functions
|
||||
RWX_SELF_COMMAND="_${RWX_SELF_NAME}_cmd_"
|
||||
|
||||
# ╭──────┬───────────╮
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue