now listing scripts...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-07-19 00:41:12 +03:00
parent 52be8087f3
commit 42cb321466

View File

@ -414,7 +414,6 @@ function @setupList(){
}
#----------------------------------------------------------------------
# config...
@ -429,6 +428,15 @@ function @setupList(){
#----------------------------------------------------------------------
# help and arguments...
function listScripts(){
[ -d "$SCRIPT_DIR" ] \
&& echo "-" \
&& return 0
local scripts=( $(ls "$SCRIPT_DIR") )
echo ${scripts/README}
}
function printhelp(){ cat << EOF
Usage: $CMD [OPTIONS]
@ -455,6 +463,9 @@ Default features:
Supported features:
${ALL_FEATURES[@]}
Available scripts:
$( listScripts )
Examples:
Only create dirs and links (features dir and user-link)...
@ -480,6 +491,7 @@ while ! [ -z "$1" ] ; do
QUIET=1
shift
;;
# XXX introspection...
-s|--source)
[ -z "$2" ] \