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 committed 2016-03-04 10:07:19 -08:00
1 parent 91800cff53
commit 164dfe2ec9
14 files changed
+669 -210

No files matched your search

+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)
}