Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
a03885e8db | |||
6cc10e3f4f | |||
4a1208942d | |||
91780024f0 |
@ -48,6 +48,8 @@ There are a few notable changes to this runtime:
|
|||||||
- User yes/no prompts will **always be YES**
|
- User yes/no prompts will **always be YES**
|
||||||
- Other user input will default to an empty string
|
- Other user input will default to an empty string
|
||||||
- Logs will not be captured
|
- Logs will not be captured
|
||||||
|
- Setting the environment variable `SCWRYPTS_GROUP_LOADER__[a-z_]\+` will source the file indicated in the variable (this allows custom groups without needing to modify the `config.zsh` directly)
|
||||||
|
- In GitHub actions, `*.scwrypts.zsh` groups are detected automatically from the `$GITHUB_WORKSPACE`; set `SCWRYPTS_GITHUB_NO_AUTOLOAD=true` to disable
|
||||||
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
@ -55,8 +55,7 @@ runs:
|
|||||||
--name scwrypts/virtualenv/update-all \
|
--name scwrypts/virtualenv/update-all \
|
||||||
--group scwrypts \
|
--group scwrypts \
|
||||||
--type zsh \
|
--type zsh \
|
||||||
;
|
> $HOME/.scwrypts.virtualenv.log 2>&1
|
||||||
#> $HOME/.scwrypts.virtualenv.log 2>&1
|
|
||||||
|
|
||||||
echo "CI_SCWRYPTS_READY=1" >> $GITHUB_ENV
|
echo "CI_SCWRYPTS_READY=1" >> $GITHUB_ENV
|
||||||
exit 0
|
exit 0
|
||||||
|
6
run
6
run
@ -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
|
||||||
@ -218,6 +223,7 @@ __RUN() {
|
|||||||
|
|
||||||
[[ $ENV_REQUIRED -eq 1 ]] && {
|
[[ $ENV_REQUIRED -eq 1 ]] && {
|
||||||
[ ! $ENV_NAME ] && ENV_NAME=$(SCWRYPTS__SELECT_ENV)
|
[ ! $ENV_NAME ] && ENV_NAME=$(SCWRYPTS__SELECT_ENV)
|
||||||
|
|
||||||
for GROUP in ${SCWRYPTS_GROUPS[@]}
|
for GROUP in ${SCWRYPTS_GROUPS[@]}
|
||||||
do
|
do
|
||||||
local ENV_FILE=$(SCWRYPTS__GET_ENV_FILE "$ENV_NAME" "$GROUP")
|
local ENV_FILE=$(SCWRYPTS__GET_ENV_FILE "$ENV_NAME" "$GROUP")
|
||||||
|
@ -47,6 +47,26 @@ do
|
|||||||
}
|
}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
for GROUP_LOADER in $(env | sed -n 's/^SCWRYPTS_GROUP_LOADER__[a-z_]\+=//p')
|
||||||
|
do
|
||||||
|
[ -f "$GROUP_LOADER" ] && source "$GROUP_LOADER"
|
||||||
|
done
|
||||||
|
|
||||||
|
: \
|
||||||
|
&& [ ! "$SCWRYPTS_AUTODETECT_GROUP_BASEDIR" ] \
|
||||||
|
&& [ $GITHUB_WORKSPACE ] \
|
||||||
|
&& [ ! $SCWRYPTS_GITHUB_NO_AUTOLOAD ] \
|
||||||
|
&& SCWRYPTS_AUTODETECT_GROUP_BASEDIR="$GITHUB_WORKSPACE"
|
||||||
|
|
||||||
|
[ "$SCWRYPTS_AUTODETECT_GROUP_BASEDIR" ] && [ -d "$SCWRYPTS_AUTODETECT_GROUP_BASEDIR" ] && {
|
||||||
|
for GROUP_LOADER in $(find "$SCWRYPTS_AUTODETECT_GROUP_BASEDIR" -type f -name \*scwrypts.zsh)
|
||||||
|
do
|
||||||
|
[ -f "$GROUP_LOADER" ] && source "$GROUP_LOADER"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
[ $NO_EXPORT_CONFIG ] || __SCWRYPT=1 # arbitrary; indicates currently inside a scwrypt
|
[ $NO_EXPORT_CONFIG ] || __SCWRYPT=1 # arbitrary; indicates currently inside a scwrypt
|
||||||
true
|
true
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user