Commit 50c7814b authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Change cmdline display

Closes #6
parent 8f291ae1
......@@ -159,7 +159,7 @@ func uploadPubKey() (state api.DepState) {
func findServiceID() (serviceID int) {
serviceBytes, err := restCall("GET", "services", nil)
if err != nil {
log.Fatal("Retrieving services: %s", err)
log.Fatalf("Retrieving services: %s", err)
}
var services = []api.Service{}
json.Unmarshal(serviceBytes, &services)
......@@ -254,7 +254,7 @@ func sshConnect(creds api.Credentials) {
cmd.Stdout = os.Stdout
err = cmd.Run()
} else {
log.Printf("Done. SSH using: 'ssh -i %s %s@%s'", *pubKey, sshUser, sshHost)
fmt.Printf("Deployment successful. You can now ssh to the service using:\nssh -i %s %s@%s'", *pubKey, sshUser, sshHost)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment