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

[feature request] CLI --quiet switch #63

Closed
FredLackeyOfficial opened this issue Dec 6, 2018 · 3 comments
Closed

[feature request] CLI --quiet switch #63

FredLackeyOfficial opened this issue Dec 6, 2018 · 3 comments
Assignees

Comments

@FredLackeyOfficial
Copy link

Please add a --quiet switch for the CLI wrapper. I would prefer to use this in a script without any output upon success.

@adamreisnz
Copy link
Owner

I don't think we log anything from the script itself, only if you use dry mode: https://github.com/adamreisnz/replace-in-file/blob/master/lib/replace-in-file.js#L37-L39

Can you show me what output you get?

@FredLackeyOfficial
Copy link
Author

$ node_modules/.bin/replace-in-file "/\{NdefaultValue.*?$/" "" data/models/**/*.js
Replacing '/\{NdefaultValue.*?$/' with ''
No files were changed

@adamreisnz
Copy link
Owner

Implemented in 4.0.0

@adamreisnz adamreisnz self-assigned this Apr 21, 2019
adamreisnz added a commit that referenced this issue Apr 21, 2019
* Bump dependencies

* [feature] #38 Count number of matches

* Update make-replacements.js

* [feature] #42 Differentiate number of matches and number of replacements

* [enhance] #56 Support for CWD parameter

* Default config value

* [enhance] #63 Add --quiet flag to supress console output in CLI

* Update success-handler.js

* Update readme and add change log
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

No branches or pull requests

2 participants