-
Notifications
You must be signed in to change notification settings - Fork 102
add -stdin flag on build formula command #648
add -stdin flag on build formula command #648
Conversation
Codecov Report
@@ Coverage Diff @@
## master #648 +/- ##
==========================================
+ Coverage 80.76% 80.87% +0.10%
==========================================
Files 108 108
Lines 3702 3723 +21
==========================================
+ Hits 2990 3011 +21
Misses 516 516
Partials 196 196
Continue to review full report at Codecov.
|
Hi @aronrichter, thank you for contributing 👍🏼 I'll let the CODEOWNERS check everything is ok when they'll be available, and I'll already add the label for your contribution during the #Hacktoberfest! 🚀 |
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.
Nice job aron, thanks for your help 🚀
/merge qa |
👌 Merged branch feature/add-stdin-build-formula into qa |
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.
Just found a small correction for cross-platform stability
01d391c
/merge qa |
👌 Merged branch feature/add-stdin-build-formula into qa |
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.
Hi @aronrichter,
Can you resolve the latest conflicts, please?
Signed-off-by: Aron Richter <aron.richter@contabilizei.com.br>
/merge qa |
👌 Merged branch feature/add-stdin-build-formula into qa |
Hi @aronrichter, echo '{"workspacePath":"/home/bruna/ritchie-formulas-local", "formula": "rit teste build-stdin"}' | rit build formula --stdin And this returned an error: I think there may be a problem when searching for the formula on the |
Hi @brunasilvazup ... First of all, thank you for your review 😁 I was looking at the code, and correct me if I'm wrong, but I understood the rule this way: When you use the command With that in mind, when you use the prompt option to build a formula, you pass through these steps:
When you select a formula, Ritchie will enter on chosen dir and then build the formula inside using one of those implementations of Build interface:
You can see this behavior in When I developed this feature, I tryed to focus on this. As far I understood of the behavior of Ritchie, your test is validating a uncreated formula, so would be right you get this error:
Please forgive me for this large text. It was hard to me explain on less words. Thank you for your time and your patience. |
Hi @aronrichter,
As you developed it only finds a formula if the directory has its full name, so it only works explicitly for formulas with a single command (rit test). Were you able to understand the problem? |
Hi @aronrichter, good morning, thanks for the contribution you did a great job and developed a great solution. Unfortunately we have a new PR (#692) that will disable the Thank you again for your dedication and if you are interested in contributing to other issues, feel free. |
Description
As describe on Issue #615:
Today the
rit build formula
need user interaction, this is a problem to CI integration and general automation.Changelog
add
--stdin
flag on build formula command