Set theme color for mc admin user svcacct set output (#4599)
Align with output theme for other commands like `enable`, `disable` etc. Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
This commit is contained in:
@@ -22,9 +22,11 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/madmin-go/v2"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/pkg/console"
|
||||
)
|
||||
|
||||
var adminUserSvcAcctSetFlags = []cli.Flag{
|
||||
@@ -90,6 +92,8 @@ func checkAdminUserSvcAcctSetSyntax(ctx *cli.Context) {
|
||||
func mainAdminUserSvcAcctSet(ctx *cli.Context) error {
|
||||
checkAdminUserSvcAcctSetSyntax(ctx)
|
||||
|
||||
console.SetColor("AccMessage", color.New(color.FgGreen))
|
||||
|
||||
// Get the alias parameter from cli
|
||||
args := ctx.Args()
|
||||
aliasedURL := args.Get(0)
|
||||
|
||||
Reference in New Issue
Block a user