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

Machine readable nix why-depends #10996

Open
DieracDelta opened this issue Jun 30, 2024 · 1 comment
Open

Machine readable nix why-depends #10996

DieracDelta opened this issue Jun 30, 2024 · 1 comment
Labels
feature Feature request or proposal new-cli Relating to the "nix" command store Issues and pull requests concerning the Nix store

Comments

@DieracDelta
Copy link
Member

DieracDelta commented Jun 30, 2024

Is your feature request related to a problem? Please describe.
I'd like to query nix why-depends and parse the output. The output is currently unstructured.

Describe the solution you'd like
Ideally a cli option for returning the output as JSON or another similar format would make this much easier.

Describe alternatives you've considered
N/A

Additional context
N/A

Priorities

Add 👍 to issues you find important.

@DieracDelta DieracDelta added the feature Feature request or proposal label Jun 30, 2024
@roberth roberth added new-cli Relating to the "nix" command store Issues and pull requests concerning the Nix store labels Jul 1, 2024
@roberth
Copy link
Member

roberth commented Jul 5, 2024

JSON would be our choice, as we already have some commands that support --json.

The architecture for this kind of thing is to have it produce typed C++ data that can be rendered either to JSON or to the terminal.
We also have guidelines for JSON output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal new-cli Relating to the "nix" command store Issues and pull requests concerning the Nix store
Projects
Status: To triage
Development

No branches or pull requests

2 participants