Skip to content

Add --json flag to generate command#87

Open
Jappie3 wants to merge 2 commits into
Misterio77:masterfrom
Jappie3:master
Open

Add --json flag to generate command#87
Jappie3 wants to merge 2 commits into
Misterio77:masterfrom
Jappie3:master

Conversation

@Jappie3

@Jappie3 Jappie3 commented Sep 26, 2024

Copy link
Copy Markdown

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

Jappie3 commented Sep 26, 2024

Copy link
Copy Markdown
Author

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

@Jappie3

Jappie3 commented Oct 19, 2024

Copy link
Copy Markdown
Author

@Misterio77 could you please have a look at this if you have some spare time?

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