Skip to content

Commit 5644f75

Browse files
committed
fix: always pipe command to stdout
1 parent a5b051d commit 5644f75

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cli/cli.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ func Run(ctx context.Context, config Config, args []string) error {
180180
// Execute command in boundary
181181
go func() {
182182
defer cancel()
183+
cmd := boundaryInstance.Command(args)
184+
cmd.Stderr = os.Stderr
185+
cmd.Stdout = os.Stdout
186+
cmd.Stdin = os.Stdin
187+
188+
logger.Debug("Executing command in boundary", "command", strings.Join(args, " "))
183189
err := boundaryInstance.Command(args).Run()
184190
if err != nil {
185191
logger.Error("Command execution failed", "error", err)
@@ -292,4 +298,4 @@ func createJailer(config jail.Config, unprivileged bool) (jail.Jailer, error) {
292298

293299
// Use the DefaultOS function for platform-specific jail creation
294300
return jail.DefaultOS(config)
295-
}
301+
}

0 commit comments

Comments
 (0)