Lama2 icon indicating copy to clipboard operation
Lama2 copied to clipboard

Prettify command switch for `l2` CLI

Open shrsv opened this issue 2 years ago • 0 comments

The prototype version of l2 had an option to prettify/standardize .l2 files. The previous version depended entirely on regular expressions for identifying the various pieces of input (verb, url, headers, json/varjson). It is not entirely clear, what is the correct approach to implementing a prettification algorithm. Hence, the task involves two phases:

  1. Specify the approach/algorithm
  2. Implement the algorithm

Note that, in the present version, it is almost trivial to implement JSON prettification. The difficulty is in dealing with arbitrary input order (say URL comes before Verb).

shrsv avatar Nov 19 '22 09:11 shrsv