Append newline to --url output

pull/5790/head
tstromberg 2019-10-30 12:35:25 -07:00
parent f60764b07f
commit 2c0f2a42dd
1 changed files with 2 additions and 2 deletions

View File

@ -84,12 +84,12 @@ var serviceCmd = &cobra.Command{
_, err := url.Parse(u)
if err != nil {
glog.Warning("could not parse %v (will not open)", u, err)
out.String(u)
out.String(fmt.Sprintf("%s\n", u))
continue
}
if serviceURLMode {
out.String(u)
out.String(fmt.Sprintf("%s\n", u))
continue
}
out.T(out.Celebrate, "Opening service {{.namespace_name}}/{{.service_name}} in default browser...", out.V{"namespace_name": namespace, "service_name": svc})