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

utils: Add a helper to run command + capture output #880

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

cgwalters
Copy link
Collaborator

Factor out a helper that runs and captures output and checks exit status out of what we have existing in run_and_parse_json, so we can use it for things that output not-JSON.

Factor out a helper that runs and captures output *and*
checks exit status out of what we have existing in `run_and_parse_json`,
so we can use it for things that output not-JSON.

Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters merged commit ad95463 into containers:main Nov 7, 2024
24 of 32 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.

2 participants