v4.4.0
===================================================================== Increased non-scwrypts-runtime compatibility and improved clarity in user environments after sourcing the scwrypts.plugin.zsh. --- New Features ------------------------- - added experimental support for --output json - added 'scwrypts --list-groups' to output the SCWRYPTS_GROUPS value - added 'scwrypts --config' to be `eval`-ed in non-scwrypts-runtime zsh --- Changes ------------------------------ - removed config variables which pertained to old scwrypts - removed deprecated --no-log - cleaned up environment requirements and improved import saftey for scwrypts.plugin.zsh; scwrypts is now *required* on $PATH in order to work - refactored group configuration to match external group configuration (configuration now in scwrypts.scwrypts.zsh rather than zsh/lib/config.group.zsh) - plugins/kubectl now forces an unalias of `f` (for fluxcd) on load - the 'use' command now supports the '-c' short flag for ease of quick use - upgraded max supported python version to 3.12; dropped support for python 3.9 (>3.10 required) - remove old references to SCWRYPTS_ROOT in favour of SCWRYPTS_ROOT__scwrypts - SCWRYPTS_LOG_LEVEL setting is now forwarded when using the SCWRYPTS__RUN meta execution function
This commit is contained in:
@ -34,7 +34,7 @@ source "${0:a:h}/config.zsh"
|
||||
|
||||
use() {
|
||||
local SCWRYPTS_LIBRARY SCWRYPTS_LIBRARY_ROOT SCWRYPTS_LIBRARY_GROUP
|
||||
local DEFER_ENVIRONMENT_CHECK=1
|
||||
local DEFER_ENVIRONMENT_CHECK=true
|
||||
|
||||
while [[ $# -gt 0 ]]
|
||||
do
|
||||
@ -49,8 +49,8 @@ use() {
|
||||
SCWRYPTS_LIBRARY_ROOT=$2
|
||||
shift 1
|
||||
;;
|
||||
--check-environment )
|
||||
DEFER_ENVIRONMENT_CHECK=0
|
||||
-c | --check-environment )
|
||||
DEFER_ENVIRONMENT_CHECK=false
|
||||
;;
|
||||
* )
|
||||
[ ! $SCWRYPTS_LIBRARY ] \
|
||||
@ -106,7 +106,7 @@ use() {
|
||||
return 1
|
||||
}
|
||||
|
||||
[[ $DEFER_ENVIRONMENT_CHECK -eq 0 ]] && {
|
||||
[[ $DEFER_ENVIRONMENT_CHECK =~ false ]] && {
|
||||
CHECK_ENVIRONMENT || {
|
||||
((IMPORT_ERRORS+=1))
|
||||
ERROR "import error for '$SCWRYPTS_LIBRARY_GROUP/$SCWRYPTS_LIBRARY'"
|
||||
|
Reference in New Issue
Block a user