Skip to content

Commit

Permalink
Passthrough stdin for potential interactive kubectl and helm commands (
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-fully-ported authored Dec 6, 2023
1 parent ab50fa5 commit d111b68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cli/cmd/commands/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func runHelm(ctx context.Context, _ *types.GetAuthenticatedUserResponse, client

execCommand := exec.Command("helm", args...)

execCommand.Stdin = os.Stdin
execCommand.Stdout = os.Stdout
execCommand.Stderr = os.Stderr

Expand Down
1 change: 1 addition & 0 deletions cli/cmd/commands/kubectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func runKubectl(ctx context.Context, _ *types.GetAuthenticatedUserResponse, clie

execCommand := exec.Command("kubectl", args...)

execCommand.Stdin = os.Stdin
execCommand.Stdout = os.Stdout
execCommand.Stderr = os.Stderr

Expand Down

0 comments on commit d111b68

Please sign in to comment.