fix: add config_all alias for plugin usage
This commit is contained in:
committed by
GitHub
parent
9fcd9b0065
commit
099653ca02
@@ -2,7 +2,7 @@
|
||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
|
||||
config_sub(){
|
||||
config_sub() {
|
||||
declare desc="executes a config subcommand"
|
||||
local name="$1"
|
||||
shift
|
||||
@@ -23,6 +23,17 @@ config_export() {
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
config_all() {
|
||||
declare desc="Backwards compatible function for plugin use"
|
||||
if [[ -z "$DOKKU_CONFIG_EXPORT" ]]; then
|
||||
config_export "$@"
|
||||
return 0
|
||||
fi
|
||||
|
||||
config_sub show "$@"
|
||||
}
|
||||
|
||||
config_keys() {
|
||||
declare desc="returns keys for app or global"
|
||||
config_sub keys "$@"
|
||||
|
||||
Reference in New Issue
Block a user