Merge pull request #847 from harshavardhana/pr_out_root_path_working_directory

This commit is contained in:
Harshavardhana
2015-06-30 18:07:06 +00:00
4 changed files with 9 additions and 5 deletions
+2 -1
View File
@@ -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)
+4 -2
View File
@@ -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)
+2 -1
View File
@@ -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)
+1 -1
View File
@@ -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"`