-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Remove trim on result of exec command #475
Conversation
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 @kimbob13! Thanks for the PR. Would you be interesting in adding a new noTrim: true | false
option instead?
This allows us to cater to most people's needs, as they don't need the extra newline at the end, but for the people who need it, they can turn on the option instead.
Thanks for the suggestions! I'll add option instead. |
87b28ae
to
68edb7c
Compare
@steelbrain I've changed to option approach and force pushed. |
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.
Minor change and then we're good to go!
Co-authored-by: Anees Iqbal <hello@aneesiqbal.ai>
Warmly reminder, commit added! |
Thank you for working on this! I’ll add some tests and make some doc changes before releasing. (Also happy to accept PRs for them ) |
Hello,
I'm using this library to execute command on remote host,
and I want the result to be exactly same as what executed locally.
I think trimming process is a choice of user of library side, not what the library should perform.
Therefore, this PR removes trim method on stdout and stderr results.