Skip to content

Commit c261d1c

Browse files
authored
Show message "Press ctrl c to exit" on forward manager start (#4113)
* Show message "Press ctrl c to exit" on forward manager start * Move message to only for port-fordwarding. * Don't print if port forwarding errors out * Change text
1 parent c69b16c commit c261d1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/skaffold/runner/build_deploy.go

+2
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ func (r *SkaffoldRunner) DeployAndLog(ctx context.Context, out io.Writer, artifa
117117
if r.runCtx.Opts.PortForward.Enabled {
118118
if err := r.forwarderManager.Start(ctx); err != nil {
119119
logrus.Warnln("Error starting port forwarding:", err)
120+
} else {
121+
color.Yellow.Fprintln(out, "Press Ctrl+C to exit")
120122
}
121123
}
122124

0 commit comments

Comments
 (0)