mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
feat: make plugin:default an alias of plugin:list
This commit is contained in:
@@ -7,7 +7,7 @@ case "$1" in
|
||||
help_content_func () {
|
||||
declare desc="return plugin plugin help content"
|
||||
cat<<help_content
|
||||
plugin, Print active plugins
|
||||
plugin:list, Print active plugins
|
||||
plugin:install [--core|git-url [--committish tag|branch|commit|--name custom-plugin-name]], Optionally download git-url (with custom tag/committish) & run install trigger for active plugins (or only core ones)
|
||||
plugin:install-dependencies [--core], Run install-dependencies trigger for active plugins (or only core ones)
|
||||
plugin:update [name [committish]], Optionally update named plugin from git (with custom tag/committish) & run update trigger for active plugins
|
||||
|
||||
10
plugins/plugin/internal-functions
Executable file
10
plugins/plugin/internal-functions
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||
|
||||
plugin_list_cmd() {
|
||||
declare desc="lists all plugins"
|
||||
local cmd="plugin"
|
||||
|
||||
plugn version
|
||||
plugn list
|
||||
}
|
||||
@@ -1,11 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/plugin/internal-functions"
|
||||
|
||||
plugin_main_cmd() {
|
||||
declare desc="shows details about locally installed plugins"
|
||||
local cmd="plugin"
|
||||
plugn version
|
||||
plugn list
|
||||
}
|
||||
|
||||
plugin_main_cmd "$@"
|
||||
dokku_log_warn "Deprecated: Please use plugin:list"
|
||||
plugin_list_cmd "$@"
|
||||
|
||||
5
plugins/plugin/subcommands/list
Executable file
5
plugins/plugin/subcommands/list
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/plugin/internal-functions"
|
||||
|
||||
plugin_list_cmd "$@"
|
||||
Reference in New Issue
Block a user