Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove console.Terminal check and use IsTerminal from streams.Out #11934

Merged
merged 1 commit into from
Jun 24, 2024

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 <[email protected]>
@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
28 checks passed
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