Use bootc-utils for command helpers#821
Conversation
This enables more code sharing. I didn't do a full port here, but this starts the ball rolling. In particular I think `run_and_parse_json()` is nice and elegant.
|
Maybe in future, also refactor the |
|
Are we planning to publish this as an independent crate on crates.io? Otherwise I can see this causing problem with packaging in Fedora unless we vendor things which we don't do generally. |
Maybe.
Some projects for sure do, I think as you know I personally disagree with the approach for about 60% of the Fedora Rust packaging. And bootupd does vendor consistently across both Fedora+RHEL right now: https://src.fedoraproject.org/rpms/rust-bootupd/blob/rawhide/f/rust-bootupd.spec#_13 |
|
I disagree as well with the no-vendoring approach. I hadn't checked that we already vendor the code so that should not be an issue. Thanks |
This enables more code sharing. I didn't do a full port here, but this starts the ball rolling. In particular I think
run_and_parse_json()is nice and elegant.