From b77a031a5a4ed4ceca7bd894f6d68c0a33a128ff Mon Sep 17 00:00:00 2001 From: RayyanSeliya Date: Sat, 26 Jul 2025 02:36:03 +0530 Subject: [PATCH] fix: update console output to show both host and port using net.JoinHostPort Signed-off-by: RayyanSeliya --- cmd/run.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/run.go b/cmd/run.go index 5533a76e3..e035c4611 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -5,6 +5,7 @@ import ( "encoding/json" "errors" "fmt" + "net" "os" "strconv" "time" @@ -282,7 +283,7 @@ func runRun(cmd *cobra.Command, newClient ClientFactory) (err error) { } fmt.Fprintln(cmd.OutOrStdout(), string(jsonData)) } else { - fmt.Fprintf(cmd.OutOrStderr(), "Running on host port %v\n", job.Port) + fmt.Fprintf(cmd.OutOrStderr(), "Function running on %s\n", net.JoinHostPort(job.Host, job.Port)) } select {