mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 04:30:26 +03:00
console: Fix console color printing on windows.
Print colored accessKeyID and secretAccessKey are unreadable on windows on command prompts and powershell. Use the console package from minio client.
This commit is contained in:
@@ -16,7 +16,10 @@
|
||||
|
||||
package main
|
||||
|
||||
import "github.com/minio/cli"
|
||||
import (
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/console"
|
||||
)
|
||||
|
||||
// Print config version.
|
||||
var configVersionCmd = cli.Command{
|
||||
@@ -43,5 +46,5 @@ func mainConfigVersion(ctx *cli.Context) {
|
||||
// convert interface{} back to its original struct
|
||||
newConf := config
|
||||
type Version string
|
||||
Println(newConf.Version)
|
||||
console.Println(newConf.Version)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user