Skip to content

Conversation

@vvoland
Copy link
Contributor

@vvoland vvoland commented Jun 24, 2024

What I did
Remove console.Terminal check and use IsTerminal from streams.Out

docker/cli v27 changed the return value of Err() to streams.Out
which made the typecheck for console.File fail.

The check is no longer needed due to the IsTerminal method present in
streams.Out which also has a special handling for Windows console.

Related issue
fixes #11928

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@vvoland
Copy link
Contributor Author

vvoland commented Jun 24, 2024

Oh, I didn't notice, there's already #11933

docker/cli v27 changed the return value of `Err()` to `streams.Out`
which made the typecheck for `console.File` fail.

The check is no longer needed due to the `IsTerminal` method present in
`streams.Out` which also has a special handling for Windows console.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
@vvoland vvoland marked this pull request as ready for review June 24, 2024 12:48
Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@glours glours enabled auto-merge (rebase) June 24, 2024 12:50
@glours glours merged commit f79c281 into docker:main Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] (v2.28.0) Fancy (ANSI) progress output not available

2 participants