summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorJesús Espino <jespinog@gmail.com>2018-03-07 20:04:18 +0000
committerGitHub <noreply@github.com>2018-03-07 20:04:18 +0000
commitb2dd00dd5b83fc7e8b311a55f5a2536e4f3d45a5 (patch)
tree00d2bbb524e27727dc111994082f5293e6d12b11 /main.go
parent03b6d1f652407fa9c3ec7e740e120a1c3e920de0 (diff)
downloadchat-b2dd00dd5b83fc7e8b311a55f5a2536e4f3d45a5.tar.gz
chat-b2dd00dd5b83fc7e8b311a55f5a2536e4f3d45a5.tar.bz2
chat-b2dd00dd5b83fc7e8b311a55f5a2536e4f3d45a5.zip
Adding enterprise commands support (#8327)
Diffstat (limited to 'main.go')
-rw-r--r--main.go36
1 files changed, 36 insertions, 0 deletions
diff --git a/main.go b/main.go
new file mode 100644
index 000000000..3761f9255
--- /dev/null
+++ b/main.go
@@ -0,0 +1,36 @@
+// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+package main
+
+import (
+ "os"
+
+ "github.com/mattermost/mattermost-server/cmd"
+ _ "github.com/mattermost/mattermost-server/cmd/commands"
+
+ // Plugins
+ _ "github.com/mattermost/mattermost-server/model/gitlab"
+
+ // Enterprise Imports
+ _ "github.com/mattermost/mattermost-server/imports"
+
+ // Enterprise Deps
+ _ "github.com/dgryski/dgoogauth"
+ _ "github.com/go-ldap/ldap"
+ _ "github.com/hashicorp/memberlist"
+ _ "github.com/mattermost/rsc/qr"
+ _ "github.com/prometheus/client_golang/prometheus"
+ _ "github.com/prometheus/client_golang/prometheus/promhttp"
+ _ "github.com/tylerb/graceful"
+ _ "gopkg.in/olivere/elastic.v5"
+
+ // Temp imports for new dependencies
+ _ "github.com/gorilla/schema"
+)
+
+func main() {
+ if err := cmd.Run(os.Args[1:]); err != nil {
+ os.Exit(1)
+ }
+}