fix to mc admin (#2207)

This commit is contained in:
Carter McClellan
2017-07-11 09:39:32 -07:00
committed by Dee Koder
parent 5c135d25d6
commit 54a7460fa0
+10 -2
View File
@@ -16,7 +16,10 @@
package cmd
import "github.com/minio/cli"
import (
"github.com/fatih/color"
"github.com/minio/cli"
)
var (
adminFlags = []cli.Flag{}
@@ -27,7 +30,7 @@ var adminCmd = cli.Command{
Usage: "Manage Minio servers",
Action: mainAdmin,
HideHelpCommand: true,
Before: setGlobalsFromContext,
Before: mainAdminBefore,
Flags: append(adminFlags, globalFlags...),
Subcommands: []cli.Command{
adminServiceCmd,
@@ -39,6 +42,11 @@ var adminCmd = cli.Command{
},
}
func mainAdminBefore(ctx *cli.Context) error {
color.Yellow("\t *** Warning:Experiment feature. Not Ready for Production ***")
return setGlobalsFromContext(ctx)
}
// mainAdmin is the handle for "mc admin" command.
func mainAdmin(ctx *cli.Context) error {
cli.ShowCommandHelp(ctx, ctx.Args().First())