Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prettify command switch for l2 CLI #5

Open
shrsv opened this issue Nov 19, 2022 · 0 comments
Open

Prettify command switch for l2 CLI #5

shrsv opened this issue Nov 19, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@shrsv
Copy link
Contributor

shrsv commented Nov 19, 2022

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 shrsv added enhancement New feature or request help wanted Extra attention is needed and removed help wanted Extra attention is needed labels Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant