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

26 lines
448 B
Bash
Executable file

#!/bin/bash
##
## help - Shows this help
##
task_help() {
SCRIPTNAME=$(basename $NUX_SCRIPT)
echo Usage $SCRIPTNAME [task] [options]
grep "^\#\#\#" $NUX_SCRIPT | cut -d\# -f4-
grep "^\#\# " $NUX_SCRIPT | cut -d\# -f3-
echo
echo " help - Shows this help"
echo
}
task_() {
task_help
}
NUX_SCRIPT=$1; shift; # Determines script
TASK=$1; shift; # Determines task
source $NUX_SCRIPT; # Includes script
task_$task "$*" # Runs task