From a03885e8dbea27bbeaffaa1b7fefef14eb0ade75 Mon Sep 17 00:00:00 2001 From: yage Date: Mon, 13 Nov 2023 16:19:05 -0700 Subject: [PATCH] v3.7.8 ===================================================================== --- New Features ------------------------- - --list-envs now shows all available environments --- run | 7 ++++++- zsh/lib/helm/template.module.zsh | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/run b/run index a851bb3..b175f01 100755 --- a/run +++ b/run @@ -17,7 +17,8 @@ __RUN() { -e, --env set environment; overwrites SCWRYPTS_ENV -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 -l, --list print out command list and exit @@ -78,6 +79,10 @@ __RUN() { SCWRYPTS__GET_AVAILABLE_SCWRYPTS return 0 ;; + --list-envs ) + SCWRYPTS__GET_ENV_NAMES + return 0 + ;; -v | --version ) echo scwrypts $(cd "$SCWRYPTS__ROOT__scwrypts"; git describe --tags) return 0 diff --git a/zsh/lib/helm/template.module.zsh b/zsh/lib/helm/template.module.zsh index 17dc29f..f75863c 100644 --- a/zsh/lib/helm/template.module.zsh +++ b/zsh/lib/helm/template.module.zsh @@ -17,6 +17,8 @@ HELM__TEMPLATE__GET() { --colorize use 'bat' to colorize output --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 and sample values for testing and developing helm charts. " @@ -35,8 +37,11 @@ HELM__TEMPLATE__GET() { ;; --raw ) RAW=1 ;; + + -h | --help ) USAGE; return 0 ;; -- ) shift 1; break ;; + * ) HELM_ARGS+=($1) ;; esac shift 1