* format using `goimports -local github.com/mattermost/mattermost-server/v5 -w` * added goimports lint check to .golangci.yml * format using `goimports -local github.com/mattermost/mattermost-server/v5 -w` for a corner case * make app-layers, *-mocks and store-layers for ci check Co-authored-by: Mahmudul Haque <mahmudulhaque@protonmail.com> Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
35 строки
965 B
Go
35 строки
965 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
// Enterprise Deps
|
|
_ "github.com/gorilla/handlers"
|
|
_ "github.com/hako/durafmt"
|
|
_ "github.com/hashicorp/memberlist"
|
|
_ "github.com/mattermost/gosaml2"
|
|
_ "github.com/mattermost/ldap"
|
|
_ "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.v6"
|
|
|
|
"github.com/mattermost/mattermost-server/v5/cmd/mattermost/commands"
|
|
// Import and register app layer slash commands
|
|
_ "github.com/mattermost/mattermost-server/v5/app/slashcommands"
|
|
// Plugins
|
|
_ "github.com/mattermost/mattermost-server/v5/model/gitlab"
|
|
// Enterprise Imports
|
|
_ "github.com/mattermost/mattermost-server/v5/imports"
|
|
)
|
|
|
|
func main() {
|
|
if err := commands.Run(os.Args[1:]); err != nil {
|
|
os.Exit(1)
|
|
}
|
|
}
|