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

crane: Respect cmd.OutOrStdout #1728

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

kyleconroy
Copy link
Contributor

@kyleconroy kyleconroy commented Jun 13, 2023

When calling Crane programmatically, it's difficult to capture the output as it's written directly to stdout. This change uses Cobra's built-in support for changing stdout to an io.Writer.

When calling Crane programmatically, it's difficult to capture the
output as it's written directly to stdout. This change uses Cobra's
built-in support for stdout.
Copy link
Collaborator

@jonjohnsonjr jonjohnsonjr left a comment

Choose a reason for hiding this comment

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

Thanks!

@jonjohnsonjr jonjohnsonjr merged commit 0a9bb12 into google:main Jun 14, 2023
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.

2 participants