v3.6.0
===================================================================== --- New Features ------------------------- - Introducing an optional plugin for `kubectl` facilitation! Check out 'plugins/kubectl/README.md' for more details. --- Changes ------------------------------ - The function which lists all available scwrypts now ignores directories with a top-level base called "plugins." If this is a name conflict, you will need to define your own `SCWRYPTS__LIST_AVAILABLE_SCWRYPTS__<group>` function! (ref the changes in 'zsh/lib/scwrypts/run.module.zsh')
This commit is contained in:
Binary file not shown.
@ -38,5 +38,11 @@ SCWRYPTS_GROUPS=($(echo $SCWRYPTS_GROUPS | sed 's/\s\+/\n/g' | sort -u))
|
||||
source "$SCWRYPTS_ROOT/zsh/lib/config.group.zsh" \
|
||||
|| FAIL 69 'failed to set up scwrypts group; aborting'
|
||||
|
||||
#####################################################################
|
||||
|
||||
[[ $SCWRYPTS_PLUGIN_ENABLED__kubectl -eq 1 ]] && {
|
||||
source "$SCWRYPTS_ROOT/plugins/kubectl/kubectl.scwrypts.zsh"
|
||||
}
|
||||
|
||||
#####################################################################
|
||||
__SCWRYPT=1 # arbitrary; indicates currently inside a scwrypt
|
||||
|
@ -54,6 +54,7 @@ SCWRYPTS__LIST_AVAILABLE_SCWRYPTS__scwrypts() {
|
||||
| grep -v '\.git' \
|
||||
| grep -v 'node_modules' \
|
||||
| sed "s/^\\.\\///; s/\\.[^.]*$//; s/^/$GROUP_TYPE/" \
|
||||
| grep -v '^plugins/' \
|
||||
;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user