Lama2
Lama2 copied to clipboard
Prettify command switch for `l2` CLI
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:
- Specify the approach/algorithm
- 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).