=====================================================================

--- New Features -------------------------

- --list-envs now shows all available environments
This commit is contained in:
Wryn (yage) Wagner 2023-11-13 16:19:05 -07:00
parent 6cc10e3f4f
commit a03885e8db
2 changed files with 11 additions and 1 deletions

5
run
View File

@ -18,6 +18,7 @@ __RUN() {
-n, --no-log skip logging and run in quiet mode -n, --no-log skip logging and run in quiet mode
--update update scwrypts library to latest version --update update scwrypts library to latest version
--list-envs print out environment list and exit
-v, --version print out scwrypts version and exit -v, --version print out scwrypts version and exit
-l, --list print out command list and exit -l, --list print out command list and exit
@ -78,6 +79,10 @@ __RUN() {
SCWRYPTS__GET_AVAILABLE_SCWRYPTS SCWRYPTS__GET_AVAILABLE_SCWRYPTS
return 0 return 0
;; ;;
--list-envs )
SCWRYPTS__GET_ENV_NAMES
return 0
;;
-v | --version ) -v | --version )
echo scwrypts $(cd "$SCWRYPTS__ROOT__scwrypts"; git describe --tags) echo scwrypts $(cd "$SCWRYPTS__ROOT__scwrypts"; git describe --tags)
return 0 return 0

View File

@ -17,6 +17,8 @@ HELM__TEMPLATE__GET() {
--colorize use 'bat' to colorize output --colorize use 'bat' to colorize output
--raw remove scwrypts-added fluff and only output helm template details --raw remove scwrypts-added fluff and only output helm template details
-h, --help show this help dialogue
Smart helm-template generator which auto-detects the chart Smart helm-template generator which auto-detects the chart
and sample values for testing and developing helm charts. and sample values for testing and developing helm charts.
" "
@ -35,8 +37,11 @@ HELM__TEMPLATE__GET() {
;; ;;
--raw ) RAW=1 ;; --raw ) RAW=1 ;;
-h | --help ) USAGE; return 0 ;;
-- ) shift 1; break ;; -- ) shift 1; break ;;
* ) HELM_ARGS+=($1) ;; * ) HELM_ARGS+=($1) ;;
esac esac
shift 1 shift 1