-
Notifications
You must be signed in to change notification settings - Fork 7
Refactoring #3
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
Refactoring #3
Conversation
Changes Unknown when pulling 93e701c on njam:refactor into * on collectiveidea:master*. |
@njam Thank you! 👏 I appreciate you taking the time to contribute. I like how you changed the specs to be more full stack. I also have a couple of minor concerns and one major one… Minor
Major
|
Changes Unknown when pulling d5b08ab on njam:refactor into * on collectiveidea:master*. |
Well, I tried ;)
I agree currently it's quite useless. I didn't explain, sorry. I thought it would be good to add additional features to configure the run of a command:
Command.run("sort", {:stdin => "2\n1\n", :env => {"PATH" => "/usr/local/bin"}}) Apart from that I think it might be useful to have a "container" object which can hold the definition of a command. This object could be serialized, passed along to other parts of a system etc, without having the code to actually run the command attached to it.
That's also what I want to accomplish. Did you want to not use |
@laserlemon do you think the proposed changes are something you're interested in incorporating into |
@laserlemon sooo... how do you like the changes and are do you think you wanna integrate them? |
Moving this to a new repo: https://github.com/cargomedia/komenda |
I like the idea of having a simple API to run commands and retrieve their output and exit status.
For my use cases I wanted to add some features (like combined stdout+stderr, allowing to pass stdin, etc).
I thought it would be good to refactor the code a bit first to allow to add these features more easily.
cmd
string atm)stdout
,exitstatus
etc)@laserlemon What do you think?