fix: stream both stdout and stderr
This commit is contained in:
@@ -40,10 +40,10 @@ func CommandLogin(server string, username string, password string, passwordStdin
|
|||||||
buffer.Write([]byte(password + "\n"))
|
buffer.Write([]byte(password + "\n"))
|
||||||
|
|
||||||
result, err := common.CallExecCommand(common.ExecCommandInput{
|
result, err := common.CallExecCommand(common.ExecCommandInput{
|
||||||
Command: common.DockerBin(),
|
Command: common.DockerBin(),
|
||||||
Args: []string{"login", "--username", username, "--password-stdin", server},
|
Args: []string{"login", "--username", username, "--password-stdin", server},
|
||||||
Stdin: &buffer,
|
Stdin: &buffer,
|
||||||
StreamStderr: true,
|
StreamStdio: true,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Unable to run docker login: %w", err)
|
return fmt.Errorf("Unable to run docker login: %w", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user