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

Add --json flag to generate command #87

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Jappie3
Copy link

@Jappie3 Jappie3 commented Sep 26, 2024

This MR adds a --json flag to the generate command. JSON is a format that, in general, is a little easier to work with than YAML. For example, Nix has fromJSON, but there's no fromYAML (this was my main reason).

Feel free to let me know if there's anything you'd like to see changed or if you have any ideas on how to do this better.

@Jappie3
Copy link
Author

Jappie3 commented Sep 26, 2024

I also took the liberty of adding meta.mainProgram for e.g. nix run and lib.getExe.

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.

1 participant