mirror of
https://github.com/minio/mc.git
synced 2025-11-13 12:22:45 +03:00
Move to structure printing everywhere, fix incorrect iodine usage at few places
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/minio/mc/pkg/console"
|
||||
"github.com/minio/minio/pkg/iodine"
|
||||
)
|
||||
@@ -71,3 +73,13 @@ type InfoMessage struct {
|
||||
func (i InfoMessage) String() string {
|
||||
return i.Message
|
||||
}
|
||||
|
||||
type CopyMessage struct {
|
||||
Message string `json:"message"`
|
||||
Source string `json:"source"`
|
||||
Target string `json:"target"`
|
||||
}
|
||||
|
||||
func (c CopyMessage) String() string {
|
||||
return fmt.Sprintf("‘%s’ -> ‘%s’", c.Source, c.Target)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user