diff --git a/cmd-access.go b/cmd-access.go index 9ebc2c1d..5b2507db 100644 --- a/cmd-access.go +++ b/cmd-access.go @@ -107,9 +107,7 @@ func runAccessCmd(ctx *cli.Context) { Error: iodine.New(err, nil), }) } - console.Infos(InfoMessage{ - Message: msg, - }) + console.Infoln(msg) } } diff --git a/cmd-config.go b/cmd-config.go index 57a74709..e1696bd1 100644 --- a/cmd-config.go +++ b/cmd-config.go @@ -77,9 +77,7 @@ func runConfigCmd(ctx *cli.Context) { Error: iodine.New(err, nil), }) } - console.Infos(InfoMessage{ - Message: msg, - }) + console.Infoln(msg) } // saveConfig writes configuration data in json format to config file. diff --git a/cmd-diff.go b/cmd-diff.go index adda460a..8489e772 100644 --- a/cmd-diff.go +++ b/cmd-diff.go @@ -119,9 +119,7 @@ func runDiffCmd(ctx *cli.Context) { Error: iodine.New(diff.err, nil), }) } - console.Infos(InfoMessage{ - Message: diff.message, - }) + console.Infoln(diff.message) } } diff --git a/cmd-mb.go b/cmd-mb.go index eb745c06..e8e437e8 100644 --- a/cmd-mb.go +++ b/cmd-mb.go @@ -96,9 +96,7 @@ func runMakeBucketCmd(ctx *cli.Context) { Error: iodine.New(err, nil), }) } - console.Infos(InfoMessage{ - Message: msg, - }) + console.Infoln(msg) } } diff --git a/cmd-update.go b/cmd-update.go index ab0f87de..82e7a0c9 100644 --- a/cmd-update.go +++ b/cmd-update.go @@ -92,7 +92,7 @@ https://dl.minio.io:9000 for continuous updates` if err != nil { return "", err } - console.Prints(InfoMessage{Message: msg}) + console.Println(msg) return "", nil } return "You are already running the most recent version of ‘mc’", nil @@ -119,6 +119,6 @@ func runUpdateCmd(ctx *cli.Context) { } // no msg do not print one if msg != "" { - console.Infos(InfoMessage{Message: msg}) + console.Infoln(msg) } } diff --git a/print-structs.go b/print-structs.go index af521746..2352820a 100644 --- a/print-structs.go +++ b/print-structs.go @@ -82,16 +82,6 @@ func (c Content) String() string { return string(cBytes) } -// InfoMessage container for informational messages -type InfoMessage struct { - Message string `json:"info"` -} - -// String string printer for informational message -func (i InfoMessage) String() string { - return i.Message -} - // CopyMessage container for file copy messages type CopyMessage struct { Source string `json:"source"` diff --git a/session-v2.go b/session-v2.go index 60929070..c0427a55 100644 --- a/session-v2.go +++ b/session-v2.go @@ -108,9 +108,7 @@ func (s *sessionV2) String() string { } func (s *sessionV2) Info() { - console.Infos(InfoMessage{ - Message: "Session terminated. To resume session type ‘mc session resume " + s.SessionID + "’", - }) + console.Infoln("Session terminated. To resume session type ‘mc session resume " + s.SessionID + "’") } // NewDataReader provides reader interface to session data file.