From fcdba0a3cc92e34d93563850eeb069c277a24289 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Sun, 16 Nov 2025 00:18:01 +0000 Subject: [PATCH] feat(portforward): support `{{PORT}}` template variable --- internal/portforward/service/command.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/portforward/service/command.go b/internal/portforward/service/command.go index 2a87b3eb..f2a20ed9 100644 --- a/internal/portforward/service/command.go +++ b/internal/portforward/service/command.go @@ -18,6 +18,7 @@ func runCommand(ctx context.Context, cmder Cmder, logger Logger, } portsString := strings.Join(portStrings, ",") commandString := strings.ReplaceAll(commandTemplate, "{{PORTS}}", portsString) + commandString = strings.ReplaceAll(commandString, "{{PORT}}", portStrings[0]) args, err := command.Split(commandString) if err != nil { return fmt.Errorf("parsing command: %w", err)