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:
+2
-1
@@ -27,6 +27,7 @@ import (
|
||||
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/mc/pkg/console"
|
||||
"github.com/minio/minio/pkg/probe"
|
||||
)
|
||||
|
||||
@@ -183,7 +184,7 @@ func getReleaseUpdate(updateURL string) {
|
||||
if latest.After(current) {
|
||||
updateMsg.Update = true
|
||||
}
|
||||
Println(updateMsg)
|
||||
console.Println(updateMsg)
|
||||
}
|
||||
|
||||
// main entry point for update command.
|
||||
|
||||
Reference in New Issue
Block a user