You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature or enhancement request related to a problem or limitation? Please describe
Currently, we parse arguments using the ZCLI::parse_input function, which iterates over the string and attempts to gather positional arguments and options. However, there are certain scenarios where the function may encounter difficulties when parsing input, e.g.:
parentheses around the command (or parts of it)
quoted strings
command chaining
Describe your enhancement idea
Use an AST parser and lexer to parse input, handling complex scenarios such as the ones outlined above.
Describe alternatives you've considered
We can implement regex and more complex processing, but a lexer/parser would be a bit easier and avoid edge-case issues.
Provide any additional context
Going to assign this to myself to investigate on the side - but if anyone wants to implement something like this, feel free to add yourself as an assignee 😋
The text was updated successfully, but these errors were encountered:
Is your feature or enhancement request related to a problem or limitation? Please describe
Currently, we parse arguments using the
ZCLI::parse_input
function, which iterates over the string and attempts to gather positional arguments and options. However, there are certain scenarios where the function may encounter difficulties when parsing input, e.g.:Describe your enhancement idea
Use an AST parser and lexer to parse input, handling complex scenarios such as the ones outlined above.
Describe alternatives you've considered
We can implement regex and more complex processing, but a lexer/parser would be a bit easier and avoid edge-case issues.
Provide any additional context
Going to assign this to myself to investigate on the side - but if anyone wants to implement something like this, feel free to add yourself as an assignee 😋
The text was updated successfully, but these errors were encountered: