mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
Merge pull request #2993 from dokku/josegonzalez-patch-1
fix: add config_all alias for plugin usage
This commit is contained in:
@@ -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