From e8bb889789cbde375952ca97f8c3374fd6a27676 Mon Sep 17 00:00:00 2001 From: yage Date: Tue, 2 Aug 2022 19:08:33 -0600 Subject: [PATCH] v2.2.0 ===================================================================== --- New Scripts -------------------------- zsh ) amazon EKS - aws/eks/login --- Changes ------------------------------ - moved global .config to global/config.zsh - moved various global configurations to global/ --- Bug Fixes ---------------------------- - REDIS_AUTH no longer required to attempt connection - global configurations now propagate to non-zsh scripts --- global/common.zsh | 32 ++++++++++++++++++++++++++++ .config => global/config.zsh | Bin 1330 -> 1400 bytes py/redis/client.py | 2 +- zsh/aws/eks/common.zsh | 6 ++++++ zsh/aws/eks/login | 19 +++++++++++++++++ zsh/common.zsh | 39 ++++++----------------------------- zsh/scwrypts/configure | 2 +- 7 files changed, 65 insertions(+), 35 deletions(-) create mode 100644 global/common.zsh rename .config => global/config.zsh (95%) create mode 100644 zsh/aws/eks/common.zsh create mode 100755 zsh/aws/eks/login diff --git a/global/common.zsh b/global/common.zsh new file mode 100644 index 0000000..656ace2 --- /dev/null +++ b/global/common.zsh @@ -0,0 +1,32 @@ +##################################################################### + +[ ! $SCWRYPTS_ROOT ] && SCWRYPTS_ROOT="$(dirname ${0:a:h})" + +source "${0:a:h}/config.zsh" + +##################################################################### + +__SCWRYPT=1 # arbitrary; indicates scwrypts exists + +__PREFERRED_PYTHON_VERSIONS=(3.10 3.9) +__NODE_VERSION=18.0.0 + +__ENV_TEMPLATE=$SCWRYPTS_ROOT/.env.template + +##################################################################### + +__RUN_SCWRYPT() { + ((SUBSCWRYPT+=1)) + printf ' '; printf '--%.0s' {1..$SUBSCWRYPT}; printf " ($SUBSCWRYPT) " + echo " BEGIN SUBSCWRYPT : $(basename $1)" + + SUBSCWRYPT=$SUBSCWRYPT SCWRYPTS_ENV=$ENV_NAME \ + "$SCWRYPTS_ROOT/scwrypts" $@ + EXIT_CODE=$? + + printf ' '; printf '--%.0s' {1..$SUBSCWRYPT}; printf " ($SUBSCWRYPT) " + echo " END SUBSCWRYPT : $(basename $1)" + ((SUBSCWRYPT-=1)) + + return $EXIT_CODE +} diff --git a/.config b/global/config.zsh similarity index 95% rename from .config rename to global/config.zsh index 377642a55f4b201cd0fb8dff0a5ad3bcb512cc1f..00d85d9763bd216c543ef8ba5b25ba609382eaa1 100644 GIT binary patch delta 45 zcmdnQ^@D2z8`I< $SCWRYPTS_CONFIG_PATH/config __EDIT $SCWRYPTS_CONFIG_PATH/config