docs: provide an expanded example of generating a Justfile #277
Labels
❔ Type: Question
This issue contains a question
📜 Type: Story
This issue targets a new feature through a story
Since I started using it a few months ago, I've become a big fan of
just
, offloading quite a few occasionally-used scripts or shortcuts fromdevshell
commands into a Justfile. Its overall strict and functional-ish syntax is extremely rewarding for writing resilient simple tasks.But I haven't used Standard's tooling for creating
just
tasks much at all, since it didn't seem very clear how to make use of all the syntax/features supported byjust
. That's not an accusation of documentation lacking in either project, but more of an acknowledgement that generating Justfiles via JSON via Nix seems like unexplored territory (from my perspective, anyway). So this "issue" is more of a feature request for expanded explorations of the potential benefits and drawbacks to using Nix->JSON->Justfile generation.Basically: explore whether using Nix for this purpose saves time and effort in writing and understanding
just
tasks, or whether its abstraction increase the mental overhead, where writing a Justfile might instead be the less-complex approach?Sample Example
Here's a single task from my Justfile:
And its dependencies:
And here's the generated JSON for that task via
just --unstable --dump --dump-format=json | jq .
(probably invalid syntax since it's only a snippet from the full output, but it should give some idea):The text was updated successfully, but these errors were encountered: