diff --git a/cmd-cp.go b/cmd-cp.go index 9112e20e..dc824c16 100644 --- a/cmd-cp.go +++ b/cmd-cp.go @@ -276,8 +276,9 @@ func runCopyCmd(ctx *cli.Context) { Error: iodine.New(err, nil), }) } + console.Println() console.Infos(InfoMessage{ - Message: "\nSession terminated. To resume session type ‘mc session resume " + s.SessionID + "’", + Message: "Session terminated. To resume session type ‘mc session resume " + s.SessionID + "’", }) // this os.Exit is needed really to exit in-case of "os.Interrupt" os.Exit(0) diff --git a/cmd-session.go b/cmd-session.go index ccedda54..4e9a91b9 100644 --- a/cmd-session.go +++ b/cmd-session.go @@ -143,8 +143,9 @@ func sessionExecute(bar barSend, s *sessionV1) { Error: iodine.New(err, nil), }) } + console.Println() console.Infos(InfoMessage{ - Message: "\nSession terminated. To resume session type ‘mc session resume " + s.SessionID + "’", + Message: "Session terminated. To resume session type ‘mc session resume " + s.SessionID + "’", }) // this os.Exit is needed really to exit in-case of "os.Interrupt" os.Exit(0) @@ -165,8 +166,9 @@ func sessionExecute(bar barSend, s *sessionV1) { Error: iodine.New(err, nil), }) } + console.Println() console.Infos(InfoMessage{ - Message: "\nSession terminated. To resume session type ‘mc session resume " + s.SessionID + "’", + Message: "Session terminated. To resume session type ‘mc session resume " + s.SessionID + "’", }) // this os.Exit is needed really to exit in-case of "os.Interrupt" os.Exit(0) diff --git a/cmd-sync.go b/cmd-sync.go index 0d77ebb5..80fe69e6 100644 --- a/cmd-sync.go +++ b/cmd-sync.go @@ -276,8 +276,9 @@ func runSyncCmd(ctx *cli.Context) { Error: iodine.New(err, nil), }) } + console.Println() console.Infos(InfoMessage{ - Message: "\nSession terminated. To resume session type ‘mc session resume " + s.SessionID + "’", + Message: "Session terminated. To resume session type ‘mc session resume " + s.SessionID + "’", }) // this os.Exit is needed really to exit in-case of "os.Interrupt" os.Exit(0) diff --git a/session.go b/session.go index 973dc52c..37029124 100644 --- a/session.go +++ b/session.go @@ -34,7 +34,7 @@ type sessionV1 struct { Started time.Time `json:"started"` CommandType string `json:"command-type"` SessionID string `json:"session-id"` - RootPath string `json:"root-path"` + RootPath string `json:"working-directory"` URLs []string `json:"args"` Files map[string]bool `json:"files"`