Files
mostlymatter/server/cmd/mattermost/main.go
Agniva De Sarker 9f1796f98b Remove unnecessary blank imports (round 2) (#23310)
I mistakenly assumed that those packages are naturally imported.

And also atleast one test would have broken.

None of them are true. :)

So we just import it again at a better place

This reverts commit 30a053314b.

```release-note
NONE
```
2023-05-05 19:44:02 +05:30

28 строки
830 B
Go

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
package main
import (
"os"
"github.com/mattermost/mattermost-server/server/v8/cmd/mattermost/commands"
// Import and register app layer slash commands
_ "github.com/mattermost/mattermost-server/server/v8/channels/app/slashcommands"
// Plugins
_ "github.com/mattermost/mattermost-server/server/v8/model/oauthproviders/gitlab"
// Enterprise Imports
_ "github.com/mattermost/mattermost-server/server/v8/channels/imports"
// Blank imports for each product to register themselves
_ "github.com/mattermost/mattermost-server/server/v8/boards/product"
_ "github.com/mattermost/mattermost-server/server/v8/playbooks/product"
)
func main() {
if err := commands.Run(os.Args[1:]); err != nil {
os.Exit(1)
}
}