From ac59bb3dee55f83e6fcee04b40fa0047858a5dea Mon Sep 17 00:00:00 2001 From: Carmine Di Monaco Date: Thu, 9 Jan 2025 11:50:24 +0100 Subject: [PATCH] CmdExecutor returns as output both StdErr and StdOut --- internal/support/cmdexecutor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/support/cmdexecutor.go b/internal/support/cmdexecutor.go index d9553ff..c0510dc 100644 --- a/internal/support/cmdexecutor.go +++ b/internal/support/cmdexecutor.go @@ -15,5 +15,5 @@ type CliExecutor struct{} func (e CliExecutor) Exec(ctx context.Context, name string, arg ...string) ([]byte, error) { cmd := exec.CommandContext(ctx, name, arg...) - return cmd.Output() + return cmd.CombinedOutput() }