fix: update console output to show both host and port using net.JoinHostPort

Signed-off-by: RayyanSeliya <rayyanseliya786@gmail.com>
This commit is contained in:
RayyanSeliya 2025-07-26 02:36:03 +05:30
parent d04ff0a378
commit b77a031a5a
1 changed files with 2 additions and 1 deletions

View File

@ -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 {