ostreedev / ostree-rs-ext

Rust library with higher level APIs on top of the core ostree API
Apache License 2.0
72 stars 22 forks source link

cli: Add JSON output option for pull --check & compare #618

Open travier opened 3 months ago

travier commented 3 months ago

This will make it easier for other higher level tools (Plasma Discover for example) to read the output of those commands.

travier commented 3 months ago

Draft as we probably want to use a JSON crate for this.

travier commented 3 months ago

c9s test is failing because it tries to build bootc and thus needs https://github.com/containers/bootc/pull/472.

Maybe I should not change the number of args of this function and add a new print_json one instead?

cgwalters commented 3 months ago

Maybe I should not change the number of args of this function and add a new print_json one instead?

Right, we can't change public API without bumping the semantic version. (Which is OK to do, but then we'd need to turn off the reverse-dependency build checks temporarily)

cgwalters commented 3 months ago

Closing in favor of https://github.com/ostreedev/ostree-rs-ext/pull/619