mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
* Remove deprecated mmctl commands and flags Remove the following deprecated commands: - `channel add` (use `channel users add`) - `channel remove` (use `channel users remove`) - `channel restore` (use `channel unarchive`) - `channel make-private` (use `channel modify --private`) - `command delete` (use `command archive`) - `permissions show` (use `permissions role show`) Remove the following deprecated flags: - `--config-path` (use `--config`) - `--display_name` (use `--display-name`) - `--system_admin` (use `--system-admin`) - `--email_verified` (use `--email-verified`) - `--attachments` from export create - `--resume` from export download
31 lines
748 B
Go
31 lines
748 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package commands
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/mattermost/mattermost/server/public/model"
|
|
)
|
|
|
|
var VersionCmd = &cobra.Command{
|
|
Use: "version",
|
|
Short: "Display version information",
|
|
RunE: versionCmdF,
|
|
}
|
|
|
|
func init() {
|
|
RootCmd.AddCommand(VersionCmd)
|
|
}
|
|
|
|
func versionCmdF(command *cobra.Command, args []string) error {
|
|
CommandPrintln("Version: " + model.CurrentVersion)
|
|
CommandPrintln("Build Number: " + model.BuildNumber)
|
|
CommandPrintln("Build Date: " + model.BuildDate)
|
|
CommandPrintln("Build Hash: " + model.BuildHash)
|
|
CommandPrintln("Build Enterprise Ready: " + model.BuildEnterpriseReady)
|
|
|
|
return nil
|
|
}
|