Skip to content

Commit

Permalink
Modify output "connect with" to be more copy-pastable.
Browse files Browse the repository at this point in the history
  • Loading branch information
hugosantos committed Jan 13, 2025
1 parent 8059a95 commit d456c06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/waiter/waiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,7 @@ func (m *Manager) announce() {
}

ww := wordwrap.NewWriter(80)
fmt.Fprintln(ww)
fmt.Fprintf(ww, "Breakpoint running until %v (%v).\n", deadline.Format(Stamp), humanize.Time(deadline))
fmt.Fprintln(ww)
fmt.Fprintf(ww, "Connect with: ssh -p %s runner@%s\n", port, host)
fmt.Fprintf(ww, "Breakpoint! Running until %v (%v).", deadline.Format(Stamp), humanize.Time(deadline))
_ = ww.Close()

lines := strings.Split(ww.String(), "\n")
Expand All @@ -252,6 +249,9 @@ func (m *Manager) announce() {
}
fmt.Fprintf(os.Stderr, "└─%s─┘\n", longline)
fmt.Fprintln(os.Stderr)

fmt.Fprintf(os.Stderr, " Connect with:\n\n")
fmt.Fprintf(os.Stderr, " ssh -p %s runner@%s\n", port, host)
}

func nchars(ch rune, n int) string {
Expand Down

0 comments on commit d456c06

Please sign in to comment.