1
1
Fork 0
mirror of https://github.com/tonydamage/nux-env.git synced 2025-12-11 13:24:28 +01:00

Added foldy

This commit is contained in:
Tony Tkáčik 2025-07-23 13:50:09 +02:00
parent bd6e1d49b2
commit 5b31a1c69e
2 changed files with 40 additions and 2 deletions

View file

@ -8,15 +8,18 @@ nux.use nux/help
@namespace nuxr. {
function :run TASK {
# FIXME: Add default task
if check:function task.$TASK {
if nux.check.function task.$TASK; then
nux.log debug "Running task: $TASK";
nux.log debug "Working dir: $(pwd)"
task.$TASK "$@" # Runs task
elif nux.check.function nuxr.run.additional; then
nux.log debug "Running additional task: $TASK";
nuxr.run.additional "$TASK" "$@"
else
echo "$NUX_SCRIPTNAME: Unrecognized task '$TASK' not available."
echo "Try '$NUX_SCRIPTNAME help' for more information."
return -1
}
fi
}
function :run.subtask SUBTASK {