lemmy-help icon indicating copy to clipboard operation
lemmy-help copied to clipboard

JSON

Open numToStr opened this issue 2 years ago • 0 comments

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

  1. lemmy-help outputs json (flag: --to-json)
  2. User modifies the content (not the structure/AST)
  3. lemmy-help takes that json (flag: --from-json) via stdin and prints vimdoc.

IDK

  • In case of --from-json, file inputs should be discarded or appended after json?

numToStr avatar Oct 12 '22 12:10 numToStr