← Back to issue list

`subprocess.run` emitting wrapper

View original Github issue

Metadata

Project
craft-parts
Number
#1023
Type
issue
State
open
Author
mattculler
Labels
Created
2025-02-21 20:23:06+00:00
Updated
2025-02-21 20:23:23+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

> This might be nice to have upstreamed somewhere in a more general way. [craft-parts](https://github.com/canonical/craft-parts/blob/37cafc6cfd8c12afb89847fe36c409a20975e1ed/craft_parts/utils/os_utils.py#L327-L345) does a version of this prepending `":: "` to each line of output in a log (but doesn't log the command itself) that could probably be merged into this in some way, and it would be better to have some version of this for all the other places we use subprocess in our apps. _Originally posted by @lengau in https://github.com/canonical/imagecraft/pull/94#discussion_r1965726929_ The private repo that I maintain has a similar `subprocess.run` wrapping function that could make use of this as well.

Evaluation history

No evaluation history available.