1
0
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:
Harshavardhana
2015-06-22 15:21:36 -07:00
parent ecfbc3c453
commit 4b88ad7786
11 changed files with 64 additions and 34 deletions

View File

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