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

Support programmatically generating Justfile #1331

Open
jmgilman opened this issue Sep 4, 2022 · 1 comment
Open

Support programmatically generating Justfile #1331

jmgilman opened this issue Sep 4, 2022 · 1 comment

Comments

@jmgilman
Copy link

jmgilman commented Sep 4, 2022

Given the existence of the (unstable) --dump flag, it seems a lot of the work has been done to get a Justfile into JSON format. Is there a plan to finish the bridge both ways? (i.e. from JSON back to Justfile).

I have a use case where I need to programmatically generate a Justfile. I'm having to resort to some quirky templating engine code to get it to play nice. It would be great if I could generate a JSON data structure of the file and then convert it to a Justfile.

@casey
Copy link
Owner

casey commented Sep 9, 2022

I'm not opposed to doing this, but it might be hard. The serialization code has some custom routines in it, so adding #[derive(serde::Deserialize)] wouldn't work without some work. The first step to doing this would just be trying to figure out how hard it would be.

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

No branches or pull requests

2 participants