jj/cli
Yuya Nishihara 0a60e85525 templater: add json() function
This was discussed in #3219 and #3262, and apparently, people don't agree
whether we should implement machine-readable formatting by using templater.
However, there are recurring requests about JSON output, and "jj api" is still
vaporware. So I think it's good to add some support for JSON output.

I'm not going to add syntax to build custom JSON object/list for now. Instead,
property types such as Commit will implement fixed serialization output. The
user might have to write ad-hoc JSON constructs to concatenate the default JSON
output and their custom JSON fields.

We'll need a documentation about which types are serializable. I think this can
be added later when more types get serialization support.
2025-06-18 18:34:37 +00:00
..
examples address new mismatched_lifetime_syntaxes Clippy lint 2025-06-17 07:40:05 +00:00
src templater: add json() function 2025-06-18 18:34:37 +00:00
testing diff: Run external diff tools in their temp dir 2025-05-12 21:34:19 +00:00
tests cli: add "diff --template" argument 2025-06-15 15:09:08 +00:00
build.rs
Cargo.toml cargo: add erased-serde dependency 2025-06-18 18:34:37 +00:00
docs
LICENSE