summaryrefslogtreecommitdiffstats
path: root/cmd/mattermost/commands/init.go
diff options
context:
space:
mode:
authorSantos Solorzano <santosjavier22@gmail.com>2018-07-11 09:17:19 -0700
committerJoram Wilander <jwawilander@gmail.com>2018-07-11 12:17:19 -0400
commitf57d279dc0101611e2bd977aef93e32802ff2370 (patch)
tree2c6ea10b8fecd96f3d72fe4a018e2fa56a2356cf /cmd/mattermost/commands/init.go
parente135cc99e1b93f41f67dbdfac214198a55f387a6 (diff)
downloadchat-f57d279dc0101611e2bd977aef93e32802ff2370.tar.gz
chat-f57d279dc0101611e2bd977aef93e32802ff2370.tar.bz2
chat-f57d279dc0101611e2bd977aef93e32802ff2370.zip
[MM-10117] Add support to add/delete and enable/disable plugins via CLI (#8745)
* Testing caching for emojis * MM-10117 Add support to add/delete and activate/deactivate plugins via CLI * Removing old work * MM-10117 Moved files and addedd plugin test * MM-10117 Renamed commands to enable/disable and updated add test * MM-10117 Finished plugin test and improved error message for plugin commands * MM-10117 Fixing plugin directories for test * MM-10117 Renamed commands and updated commands to support multiple plugins * MM-10117 Updating removed to deleted textclear * MM-10117 Fixing nil pointer error for listing plugins * MM-10117 Removing fileReader close * MM-10117 Declaring error for GetPlugins * MM-10117 Removing unnecessary nil check
Diffstat (limited to 'cmd/mattermost/commands/init.go')
-rw-r--r--cmd/mattermost/commands/init.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/mattermost/commands/init.go b/cmd/mattermost/commands/init.go
index ea7e8ec84..8d8f12c53 100644
--- a/cmd/mattermost/commands/init.go
+++ b/cmd/mattermost/commands/init.go
@@ -17,6 +17,8 @@ func InitDBCommandContextCobra(command *cobra.Command) (*app.App, error) {
}
a, err := InitDBCommandContext(config)
+ a.InitPlugins(*a.Config().PluginSettings.Directory, *a.Config().PluginSettings.ClientDirectory)
+
if err != nil {
// Returning an error just prints the usage message, so actually panic
panic(err)