summaryrefslogtreecommitdiffstats
path: root/cmd/platform/mattermost.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-03-20 08:58:15 -0400
committerGeorge Goldberg <george@gberg.me>2017-03-20 12:58:15 +0000
commitf9be4d5acbc188a5fe21e6a6f5b96c4ad2b7bf08 (patch)
tree778f924a11aeec19409d747074092e29833dc93d /cmd/platform/mattermost.go
parent3d14573b8c4df6f293fdac9933aa270b541234ec (diff)
downloadchat-f9be4d5acbc188a5fe21e6a6f5b96c4ad2b7bf08.tar.gz
chat-f9be4d5acbc188a5fe21e6a6f5b96c4ad2b7bf08.tar.bz2
chat-f9be4d5acbc188a5fe21e6a6f5b96c4ad2b7bf08.zip
Removing old CLI (#5797)
Diffstat (limited to 'cmd/platform/mattermost.go')
-rw-r--r--cmd/platform/mattermost.go17
1 files changed, 2 insertions, 15 deletions
diff --git a/cmd/platform/mattermost.go b/cmd/platform/mattermost.go
index 2ee539980..fc2f1d4c2 100644
--- a/cmd/platform/mattermost.go
+++ b/cmd/platform/mattermost.go
@@ -5,7 +5,6 @@ package main
import (
"errors"
- "flag"
"fmt"
"os"
@@ -36,20 +35,8 @@ func main() {
rootCmd.AddCommand(serverCmd, versionCmd, userCmd, teamCmd, licenseCmd, importCmd, resetCmd, channelCmd, rolesCmd, testCmd, ldapCmd)
- flag.Usage = func() {
- rootCmd.Usage()
- }
- parseCmds()
-
- if flagRunCmds {
- CommandPrintErrorln("---------------------------------------------------------------------------------------------")
- CommandPrintErrorln("DEPRECATED! All previous commands are now deprecated. Run: platform help to see the new ones.")
- CommandPrintErrorln("---------------------------------------------------------------------------------------------")
- doLegacyCommands()
- } else {
- if err := rootCmd.Execute(); err != nil {
- os.Exit(1)
- }
+ if err := rootCmd.Execute(); err != nil {
+ os.Exit(1)
}
}