mirror of
https://github.com/minio/minio.git
synced 2026-11-18 06:58:15 +00: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:
1 parent
91800cff53
commit
164dfe2ec9
14 files changed
+669
-210
No files matched your search
+2
-1
@@ -25,6 +25,7 @@ import (
|
||||
|
||||
"github.com/fatih/color"
|
||||
"github.com/minio/go-homedir"
|
||||
"github.com/minio/mc/pkg/console"
|
||||
"github.com/minio/minio/pkg/probe"
|
||||
"github.com/minio/minio/pkg/quick"
|
||||
)
|
||||
@@ -265,7 +266,7 @@ func migrateV1ToV2() {
|
||||
err = saveConfig(cv2)
|
||||
fatalIf(err.Trace(), "Unable to save config version ‘2’.", nil)
|
||||
|
||||
Println("Migration from version ‘1’ to ‘2’ completed successfully.")
|
||||
console.Println("Migration from version ‘1’ to ‘2’ completed successfully.")
|
||||
|
||||
/// Purge old fsUsers.json file
|
||||
configPath, err := getConfigPath()
|
||||
|
||||
Reference in new issue
Block a user