-
Notifications
You must be signed in to change notification settings - Fork 105
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
Fix multi block argument and add some unit tests #14
Conversation
looks like formatter is failing but not sure how to fix locally, running |
pr looks good the the semicolon syntax is not the end of the world but it's a bit jarring and it will be inconsistent with the usage of cryo's other multi-arg options I think in a more perfect world the parsing of some options here in order from easiest to hardest
I'm thinking that option 2 would be best because it is most consistent with other cli tools and with cryo's other multi-arg options |
to pass format checks need to use |
i like option 2 as well, should just involve a minor change to arg parsing, will try it out |
ok yea try it out. I think that would be the best short term solution longer term we can explore more complex parsing options for making it so the quotations are optional |
Converted to draft while I look into the alternative methods to the terminator |
@sslivkoff I go option 2 working, i think it's cleaner than the terminator version. simply need to wrap multi block inputs with double quotes ex. |
awesome stuff |
Multi block commands were not working due to a conflict in clap settings which caused commands like this to fail with a parser error:
The
allow_hyphen_values
conflicted with the multiple arguments parsing for block values.cryo/crates/cli/src/args.rs
Line 17 in 5c06015
This PR adds a value terminator which is required to end the block listThis PR changes blocks to expect single input, wrapped in quotes
Also added some unit tests while i was looking around