Fix naming for CLI plugin list command (#13065)

This commit is contained in:
Ben Schumacher
2019-11-26 09:41:44 +01:00
committed by GitHub
parent 27375cd081
commit c68f021809

View File

@@ -53,7 +53,7 @@ var PluginDisableCmd = &cobra.Command{
var PluginListCmd = &cobra.Command{
Use: "list",
Short: "List plugins",
Long: "List all active and inactive plugins installed on your Mattermost server.",
Long: "List all enabled and disabled plugins installed on your Mattermost server.",
Example: ` plugin list`,
RunE: pluginListCmdF,
}
@@ -207,12 +207,12 @@ func pluginListCmdF(command *cobra.Command, args []string) error {
return errors.Wrap(appErr, "Unable to list plugins.")
}
CommandPrettyPrintln("Listing active plugins")
CommandPrettyPrintln("Listing enabled plugins")
for _, plugin := range pluginsResp.Active {
CommandPrettyPrintln(plugin.Manifest.Name + ", Version: " + plugin.Manifest.Version)
}
CommandPrettyPrintln("Listing inactive plugins")
CommandPrettyPrintln("Listing disabled plugins")
for _, plugin := range pluginsResp.Inactive {
CommandPrettyPrintln(plugin.Manifest.Name + ", Version: " + plugin.Manifest.Version)
}