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:
Shubhendu
2023-06-13 11:19:50 -07:00
committed by GitHub
parent f148db7ae0
commit 41926421f9
+4
View File
@@ -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)