main/module
This commit is contained in:
parent
0e9108999d
commit
189b4f521d
3 changed files with 5 additions and 5 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
# TODO variablize
|
||||
# path to the entrypoint main file of the project
|
||||
RWX_MAIN_PATH="${RWX_ROOT_SYSTEM}/${RWX_MAIN_NAME}.${RWX_MAIN_EXTENSION}"
|
||||
RWX_MAIN_PATH="${RWX_ROOT_SYSTEM}/${RWX_MAIN_MODULE}.${RWX_MAIN_EXTENSION}"
|
||||
# user root directory of the project
|
||||
RWX_SELF_USER="${HOME}/${RWX_SELF_NAME}"
|
||||
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
|
||||
# extension of shell modules
|
||||
RWX_MAIN_EXTENSION="sh"
|
||||
|
||||
# name of the entrypoint module
|
||||
RWX_MAIN_NAME="main"
|
||||
RWX_MAIN_MODULE="main"
|
||||
|
||||
# name of the project itself
|
||||
RWX_SELF_NAME="rwx"
|
||||
|
||||
|
@ -80,7 +80,7 @@ rwx_main_main() {
|
|||
# find & source modules
|
||||
modules="$(rwx_main_find "${RWX_ROOT_SYSTEM}")"
|
||||
while IFS= read -r module; do
|
||||
if [ "${module}" != "${RWX_MAIN_NAME}" ]; then
|
||||
if [ "${module}" != "${RWX_MAIN_MODULE}" ]; then
|
||||
# shellcheck disable=SC1090
|
||||
. "${RWX_ROOT_SYSTEM}/${module}.${RWX_MAIN_EXTENSION}"
|
||||
fi
|
||||
|
|
|
@ -41,7 +41,7 @@ rwx_test_doc() {
|
|||
"main" \
|
||||
"alias/git" \
|
||||
\
|
||||
"RWX_MAIN_NAME" \
|
||||
"RWX_MAIN_MODULE" \
|
||||
\
|
||||
"_rwx_code" \
|
||||
\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue