-
Notifications
You must be signed in to change notification settings - Fork 533
Do not always chomp output #368
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
Conversation
efb4149
to
e982722
Compare
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
e982722
to
d431000
Compare
d431000
to
4cc9973
Compare
8e0d81a
to
16059cc
Compare
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.
Looks like this PR is behind master. If you are willing to get it caught up, I’ll take another look and if everything works, merge it.
These internal function start to have too many arguments, and in order to avoid chomping when not applicable, we will need to add one more boolean. Pass a hash of option instead of distinct arguments to make it easier to scan the source code. No functionnal change. Signed-off-by: Romain Tartière <romain@blogreen.org>
This argument was not used, so no functional change. Signed-off-by: Romain Tartière <romain@blogreen.org>
This allows the #show method to return the actual content of a file when this file ends by a line feed. Signed-off-by: Romain Tartière <romain@blogreen.org>
No functional change. Signed-off-by: Romain Tartière <romain@blogreen.org>
16059cc
to
f66cb25
Compare
@jcouball I rebased these changes on top of master. |
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.
I prefer the keyword args for chdir
and chomp
.
Since it is a wide ranging change, I do have a concern that it will invalidate every open PR. They will likely have to rebase.
This bunch of commits does some refactoring and adds a way to optionally disable chomping the output of commands.
This fixes #347 in respect to the
#show
method. Other methods may need similar adjustment.