lemmy-help
lemmy-help copied to clipboard
JSON
This might be cool. Instead of printing vimdoc
we can instead print the whole AST as json
so that other tools can walk the AST and do cool stuff with it.
FLOW
-
lemmy-help
outputsjson
(flag:--to-json
) - User modifies the content (not the structure/AST)
-
lemmy-help
takes thatjson
(flag:--from-json
) via stdin and printsvimdoc
.
IDK
- In case of
--from-json
, file inputs should be discarded or appended after json?