fix: some inconsistencies in 'mc support' command
This commit is contained in:
+5
-5
@@ -426,21 +426,21 @@ var appCmds = []cli.Command{
|
||||
mbCmd,
|
||||
rbCmd,
|
||||
cpCmd,
|
||||
mvCmd,
|
||||
rmCmd,
|
||||
mirrorCmd,
|
||||
catCmd,
|
||||
headCmd,
|
||||
pipeCmd,
|
||||
shareCmd,
|
||||
findCmd,
|
||||
sqlCmd,
|
||||
statCmd,
|
||||
mvCmd,
|
||||
treeCmd,
|
||||
duCmd,
|
||||
retentionCmd,
|
||||
legalHoldCmd,
|
||||
diffCmd,
|
||||
rmCmd,
|
||||
supportCmd,
|
||||
shareCmd,
|
||||
versionCmd,
|
||||
ilmCmd,
|
||||
encryptCmd,
|
||||
@@ -450,11 +450,11 @@ var appCmds = []cli.Command{
|
||||
anonymousCmd,
|
||||
policyCmd,
|
||||
tagCmd,
|
||||
diffCmd,
|
||||
replicateCmd,
|
||||
adminCmd,
|
||||
configCmd,
|
||||
updateCmd,
|
||||
supportCmd,
|
||||
}
|
||||
|
||||
func registerApp(name string) *cli.App {
|
||||
|
||||
@@ -28,13 +28,13 @@ import (
|
||||
|
||||
var callhomeFlags = append(globalFlags, cli.BoolFlag{
|
||||
Name: "dev",
|
||||
Usage: "Development mode - talks to local SUBNET",
|
||||
Usage: "development mode - talks to local SUBNET",
|
||||
Hidden: true,
|
||||
})
|
||||
|
||||
var callhomeSetCmd = cli.Command{
|
||||
Name: "set",
|
||||
Usage: "Enable/disable a callhome option",
|
||||
Usage: "enable/disable a callhome support",
|
||||
OnUsageError: onUsageError,
|
||||
Action: mainCallhomeSet,
|
||||
Before: setGlobalsFromContext,
|
||||
@@ -46,7 +46,7 @@ USAGE:
|
||||
{{.HelpName}} TARGET option=on|off
|
||||
|
||||
OPTIONS:
|
||||
logs - Push MinIO log entries to SUBNET in realtime
|
||||
logs - push MinIO server logs to SUBNET
|
||||
|
||||
FLAGS:
|
||||
{{range .VisibleFlags}}{{.}}
|
||||
|
||||
@@ -27,7 +27,7 @@ var callhomeSubcommands = []cli.Command{
|
||||
|
||||
var supportCallhomeCmd = cli.Command{
|
||||
Name: "callhome",
|
||||
Usage: "Configure the callhome functionality",
|
||||
Usage: "configure the callhome functionality",
|
||||
OnUsageError: onUsageError,
|
||||
Action: mainCallhome,
|
||||
Before: setGlobalsFromContext,
|
||||
|
||||
+3
-4
@@ -49,7 +49,6 @@ var supportDiagFlags = append([]cli.Flag{
|
||||
Name: "test",
|
||||
Usage: "choose specific diagnostics to run [" + fullOptions.String() + "]",
|
||||
Value: nil,
|
||||
EnvVar: "MC_HEALTH_TEST,MC_OBD_TEST",
|
||||
Hidden: true,
|
||||
},
|
||||
cli.DurationFlag{
|
||||
@@ -57,7 +56,6 @@ var supportDiagFlags = append([]cli.Flag{
|
||||
Usage: "maximum duration diagnostics should be allowed to run",
|
||||
Value: 1 * time.Hour,
|
||||
Hidden: true,
|
||||
EnvVar: "MC_DIAGNOSTICS_DEADLINE,MC_HEALTH_DEADLINE,MC_OBD_DEADLINE",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "license",
|
||||
@@ -78,7 +76,8 @@ var supportDiagFlags = append([]cli.Flag{
|
||||
|
||||
var supportDiagCmd = cli.Command{
|
||||
Name: "diag",
|
||||
Usage: "Generate MinIO diagnostics report for SUBNET",
|
||||
Aliases: []string{"diagnostics"},
|
||||
Usage: "generate MinIO diagnostics report for SUBNET",
|
||||
OnUsageError: onUsageError,
|
||||
Action: mainSupportDiag,
|
||||
Before: setGlobalsFromContext,
|
||||
@@ -110,7 +109,7 @@ EXAMPLES:
|
||||
// checkSupportDiagSyntax - validate arguments passed by a user
|
||||
func checkSupportDiagSyntax(ctx *cli.Context) {
|
||||
if len(ctx.Args()) == 0 || len(ctx.Args()) > 1 {
|
||||
cli.ShowCommandHelpAndExit(ctx, "diagnostics", 1) // last argument is exit code
|
||||
cli.ShowCommandHelpAndExit(ctx, "diag", 1) // last argument is exit code
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ import (
|
||||
|
||||
var supportRegisterCmd = cli.Command{
|
||||
Name: "register",
|
||||
Usage: "Register the MinIO Cluster with SUBNET",
|
||||
Usage: "register the MinIO Cluster with SUBNET",
|
||||
OnUsageError: onUsageError,
|
||||
Action: mainSupportRegister,
|
||||
Before: setGlobalsFromContext,
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ var supportSubcommands = []cli.Command{
|
||||
|
||||
var supportCmd = cli.Command{
|
||||
Name: "support",
|
||||
Usage: "Support related commands",
|
||||
Usage: "support related commands",
|
||||
Action: mainSupport,
|
||||
Before: setGlobalsFromContext,
|
||||
Flags: globalFlags,
|
||||
|
||||
Reference in New Issue
Block a user