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:
@@ -17,9 +17,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/console"
|
||||
)
|
||||
|
||||
var versionCmd = cli.Command{
|
||||
@@ -34,11 +33,8 @@ USAGE:
|
||||
`,
|
||||
}
|
||||
|
||||
func mainVersion(ctxx *cli.Context) {
|
||||
Println("Version: " + minioVersion)
|
||||
Println("Release-Tag: " + minioReleaseTag)
|
||||
Println("Commit-ID: " + minioCommitID)
|
||||
if os.Getenv("DOCKERIMAGE") == "1" {
|
||||
Println("Docker-Image: " + "true")
|
||||
}
|
||||
func mainVersion(ctx *cli.Context) {
|
||||
console.Println("Version: " + minioVersion)
|
||||
console.Println("Release-Tag: " + minioReleaseTag)
|
||||
console.Println("Commit-ID: " + minioCommitID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user