v2.0.0
===================================================================== Subscwrypts + Environment Inheritance --- Release Notes ------------------------ - added support for environment inheritance - added support for arbitrarily nested scripts (subscwrypts) - added support for CI mode - improved modularity of zsh/utils module - refactored to move some data from ~/.config/scwrypts to ~/.local/share/scwrypts - refactored various scripts to use new subscwrypt api --- New Scripts -------------------------- zsh ) - db/interactive/postgres - aws/rds/interactive-login
This commit is contained in:
@ -1,6 +1,22 @@
|
||||
_DEPENDENCIES+=(
|
||||
psql
|
||||
)
|
||||
_DEPENDENCIES+=()
|
||||
_REQUIRED_ENV+=()
|
||||
source ${0:a:h}/../common.zsh
|
||||
#####################################################################
|
||||
|
||||
__SELECT_CONNECTOR() {
|
||||
local DB_TYPE="$1"
|
||||
|
||||
CLIENTS_postgresql=(pgcli psql)
|
||||
|
||||
local C CLIENT=none
|
||||
for C in $(eval 'echo $CLIENTS_'$DB_TYPE)
|
||||
do
|
||||
__CHECK_DEPENDENCY $C >/dev/null 2>&1 && {
|
||||
CLIENT=$C
|
||||
__STATUS "detected '$CLIENT' for $DB_TYPE"
|
||||
break
|
||||
}
|
||||
done
|
||||
|
||||
echo $CLIENT
|
||||
}
|
||||
|
Reference in New Issue
Block a user