mirror of
https://github.com/dokku/dokku.git
synced 2025-12-25 16:29:30 +01:00
20 lines
544 B
Bash
Executable File
20 lines
544 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
source "$PLUGIN_AVAILABLE_PATH/plugin/functions"
|
|
source "$PLUGIN_AVAILABLE_PATH/plugin/internal-functions"
|
|
|
|
cmd-plugin-enable() {
|
|
declare desc="enables plugin via command line"
|
|
declare cmd="plugin:enable"
|
|
[[ "$1" == "$cmd" ]] && shift 1
|
|
declare PLUGIN="$1"
|
|
|
|
[[ -z "$PLUGIN" ]] && dokku_log_fail "Please specify a plugin to enable"
|
|
enable_plugin "$PLUGIN"
|
|
plugin_prime_bash_completion
|
|
}
|
|
|
|
cmd-plugin-enable "$@"
|