z-tokens icon indicating copy to clipboard operation
z-tokens copied to clipboard

Add support for multiple output formats (JSON, zero-separated lines, etc.)

Open cipriancraciun opened this issue 2 years ago • 0 comments

Add support for outputing in various formats (especially for generate) for the following formats:

  • text -- the current plain-text output format;
  • text-zero -- \0 terminated lines, meant mainly for tool consumption;
  • json -- JSON as a single object / array;
  • json-sequence -- a sequence of JSON objects / arrays; (useful for jq handling;)

(Special care must be taken to make sure we don't leak secret material while serializing. See also #8.)

cipriancraciun avatar Jan 08 '23 12:01 cipriancraciun