diff options
Diffstat (limited to 'cmd/platform/mattermost.go')
-rw-r--r-- | cmd/platform/mattermost.go | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/cmd/platform/mattermost.go b/cmd/platform/mattermost.go index 9985a6887..56e91dd8d 100644 --- a/cmd/platform/mattermost.go +++ b/cmd/platform/mattermost.go @@ -23,21 +23,24 @@ import ( //ENTERPRISE_IMPORTS func main() { - var rootCmd = &cobra.Command{ - Use: "platform", - Short: "Open source, self-hosted Slack-alternative", - Long: `Mattermost offers workplace messaging across web, PC and phones with archiving, search and integration with your existing systems. Documentation available at https://docs.mattermost.com`, - RunE: runServerCmd, + if err := rootCmd.Execute(); err != nil { + os.Exit(1) } +} + +func init() { rootCmd.PersistentFlags().StringP("config", "c", "config.json", "Configuration file to use.") resetCmd.Flags().Bool("confirm", false, "Confirm you really want to delete everything and a DB backup has been performed.") rootCmd.AddCommand(serverCmd, versionCmd, userCmd, teamCmd, licenseCmd, importCmd, resetCmd, channelCmd, rolesCmd, testCmd, ldapCmd) +} - if err := rootCmd.Execute(); err != nil { - os.Exit(1) - } +var rootCmd = &cobra.Command{ + Use: "platform", + Short: "Open source, self-hosted Slack-alternative", + Long: `Mattermost offers workplace messaging across web, PC and phones with archiving, search and integration with your existing systems. Documentation available at https://docs.mattermost.com`, + RunE: runServerCmd, } var resetCmd = &cobra.Command{ |