-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat Add parsing of arithmetics #147
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #147 +/- ##
==========================================
- Coverage 63.55% 58.06% -5.49%
==========================================
Files 28 28
Lines 2261 2795 +534
==========================================
+ Hits 1437 1623 +186
- Misses 824 1172 +348 ☔ View full report in Codecov by Sentry. |
To me, this looks great! |
Great! Then I'll proceed with execution and take care of the unwraps. |
This seems to be working. I have added support for almost everything except |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor comments
cmd.args, | ||
&context.state, | ||
context.stdin.clone(), | ||
context.stderr.clone(), | ||
) | ||
.await | ||
.map_err(|e| miette!(e.to_string())) | ||
.map_err(|e| miette!(e.to_string()))?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.map_err(|e| miette!(e.to_string()))?; | |
.into_diagnostics()?; |
Does this work as well?
I found like one little thing when testing.
Not sure how hard that is. Not super important IMO! |
Thanks for pointing this out. If the behaviour in such cases is going to be the same as the first working example, then handling these would a slight modification to the parser if I'm not mistaken. |
yep, definitely the same. Although with the And then in the bash case, things like
|
Cool. I'll look into those and add support for. But, I also think we can add support for those after #148 is merged so that we'd take care of everything altogether. Let me know what you think! |
#134 (comment)