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

Add option --quiet #445

Merged
merged 3 commits into from
Nov 19, 2015
Merged

Add option --quiet #445

merged 3 commits into from
Nov 19, 2015

Conversation

phihag
Copy link
Contributor

@phihag phihag commented Oct 19, 2015

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.

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.
@phihag
Copy link
Contributor Author

phihag commented Nov 18, 2015

@GreLI Is there something wrong with this pull request? Any opinion?

@GreLI
Copy link
Member

GreLI commented Nov 18, 2015

Just forgot it.

@@ -295,9 +304,11 @@ function optimizeFromString(svgstr, config, datauri, input, output) {
output = input;
}

console.log('\r');
if (! config.quiet) {
Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Contributor Author

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.

GreLI added a commit that referenced this pull request Nov 19, 2015
@GreLI GreLI merged commit ce35516 into svg:master Nov 19, 2015
@GreLI
Copy link
Member

GreLI commented Nov 19, 2015

Nice. Thanks!

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