Skip to content

Implement the --inplace flag.#828

Open
shlomif wants to merge 2 commits into
kangax:gh-pagesfrom
shlomif:inplace-flag
Open

Implement the --inplace flag.#828
shlomif wants to merge 2 commits into
kangax:gh-pagesfrom
shlomif:inplace-flag

Conversation

@shlomif

@shlomif shlomif commented Jun 26, 2017

Copy link
Copy Markdown

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
Copy Markdown
Collaborator

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

@shlomif

shlomif commented Jun 27, 2017 via email

Copy link
Copy Markdown
Author

@shlomif

shlomif commented Jul 16, 2017

Copy link
Copy Markdown
Author

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

@alexlamsl

Copy link
Copy Markdown
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

shlomif commented Jul 17, 2017 via email

Copy link
Copy Markdown
Author

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

shlomif commented Sep 2, 2018

Copy link
Copy Markdown
Author

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