-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add option --quiet #445
Add option --quiet #445
Conversation
I trust that svgo works, and the output of my build process is overly long as it is. Add a -q/--quiet option to suppress all the chatter and only show important / error messages.
@GreLI Is there something wrong with this pull request? Any opinion? |
Just forgot it. |
@@ -295,9 +304,11 @@ function optimizeFromString(svgstr, config, datauri, input, output) { | |||
output = input; | |||
} | |||
|
|||
console.log('\r'); | |||
if (! config.quiet) { |
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.
Also, this space after “!” doesn't fit the codestyle.
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.
Thanks, I have updated my pull request with a fix. Is there any way to check for style inconsistencies with this project? I found a jshint configuration file and ran jshint, but it did not report anything.
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.
There are several places and this is only one of those. You have updated in some other place.
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.
Oops, I apologize. I have made sure that the source code does not contain /!\s+/ anymore.
Nice. Thanks! |
I trust that svgo works, and the output of my build process is overly long as it is. Add a
-q
/--quiet
option to suppress all the chatter and only show important / error messages.