Skip to content
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

Implement the --inplace flag. #828

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from

Conversation

shlomif
Copy link

@shlomif shlomif commented Jun 26, 2017

With a rudimentary test that isn't invoked by default. This is similar to the -i flag of perl, ruby or GNU sed in that it modifies existing files.

@alexlamsl
Copy link
Collaborator

Does specifying the same input & output file not working thus requiring this new flag?

@shlomif
Copy link
Author

shlomif commented Jun 27, 2017 via email

@shlomif
Copy link
Author

shlomif commented Jul 16, 2017

Ping! Any news? Is there anything else I can do?

@alexlamsl
Copy link
Collaborator

This PR does not pass Travis CI: https://travis-ci.org/kangax/html-minifier/builds/247290811

On the code changes itself, there is no need to introduce inplace as commander already stores the --inplace flag. Also I fail to see why a simple setting of output file/directory to that of input wouldn't suffice, rather than all the extra file handling code.

@shlomif
Copy link
Author

shlomif commented Jul 17, 2017 via email

With a rudimentary test that isn't invoked by default.
@shlomif
Copy link
Author

shlomif commented Sep 2, 2018

Travis-CI fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants