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:
Harshavardhana
2016-03-04 01:50:59 -08:00
parent 91800cff53
commit 164dfe2ec9
14 changed files with 669 additions and 210 deletions
+5 -2
View File
@@ -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)
}