-
Notifications
You must be signed in to change notification settings - Fork 13
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
change stdin to piped #9
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9 +/- ##
=========================================
- Coverage 90.29% 89.9% -0.39%
=========================================
Files 6 6
Lines 309 317 +8
=========================================
+ Hits 279 285 +6
- Misses 30 32 +2
Continue to review full report at Codecov.
|
I ran a simple test in which i created a task that reads user input as follows: [tasks.input]
script =[
'''
echo reading..
read vv
echo read $vv
'''
] with pipe this breaks so its not working well. |
making it a config option, and having the default be |
how about making the config options an enum that accepts Null, Pipe, or Inherit? (default will be inherit) |
will add to the PR - one min |
and what in cargo-make will tell you to choose that or the default? |
thinking instead of |
added to the PR... lemme know what you think :) |
don't think you understood my point.
|
depends on what you're running, no? in some scenarios
I agree - not sure where you're seeing that? |
Since the options here would be specific to scripts, better names for those might be |
|
I agree that this PR is not the ultimate end goal, though it does make it more flexible and lets On the cargo make side, it doesn't feel that verbose to me but obviously it's your call! Just to have it on the table, we're talking about most scripts being totally unchanged: [tasks.input]
script =[
'''
echo reading..
read vv
echo read $vv
'''
] But some edge cases like launching webpack-dev-server would have an extra line or two: [tasks.webpack-dev-server]
script_capture_input = "null"
script_capture_output = "inherit" # or "pipe"? whatever..
script =[
'''
npx webpack-dev-server --config webpack.dev.js
'''
] gonna call it a night for now. later! |
imho it makes sense to merge this change here, and then the question for how to expose it in as far as I can see, it's possible to keep (though I do think cargo make should add the |
ok agree |
cool. not sure how to resolve the codecov stuff... if there's anything I can do to help there let me know |
@dakom i'm merging this one. will do few more small changes/tests. |
See sagiegurari/cargo-make#355