mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05: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:
@@ -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