Replies: 2 comments 2 replies
-
|
I see the utility, but |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
There is https://github.com/mikefarah/yq Apparently It has a similar syntax to # Dump the full just module tree as YAML (for bootstrapping spec.yaml)
[group('test')]
[script]
dump: _require-yq _full-render
just -f "{{ _full_render }}/Justfile" --dump --dump-format json | yq -P |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a complete PR (begoon#1) ready with tests.
Alas, I cannot raise it to upstream (@casey), so I will write in the discussions if there is interest in this functionality.
Structured Data
json(filename, key1, key2, ...)- Read a JSON file and index into it withthe given keys. For mappings, keys are used as field names. For arrays, keys
are parsed as integer indices. Returns the final scalar value as a string.
Aborts if the file is missing, the content cannot be parsed, a key is missing,
an array index is invalid, or the final value is not a scalar.
toml(filename, key1, key2, ...)- Read a TOML file and index into it, usingthe same rules as
json().yaml(filename, key1, key2, ...)- Read a YAML file and index into it, usingthe same rules as
json().Beta Was this translation helpful? Give feedback.
All reactions