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

Ensure csp-headers command emits to standard out (to allow for piping into other programs) #107

Merged
merged 1 commit into from
Aug 9, 2019

Conversation

Exelord
Copy link
Contributor

@Exelord Exelord commented Aug 8, 2019

  1. this.ui.writeLine is automatically covering the --silent option. There is no need to wrap it up with the if.

  2. The result should be always logged even in silent mode. There is no point to run this command without returning a header payload. That's why I used console.log as it logs always. Also, this will allow for saving the result to file eg: ember csp-headers --silent > csp.txt which can be later used during the deploy etc...

@jelhan
Copy link
Collaborator

jelhan commented Aug 8, 2019

This moves the output from stderr to stdout. I'm not sure if this should be considered a breaking change or a bug fix. It will likely break existing scripts that uses the output.

@rwjblue
Copy link
Member

rwjblue commented Aug 9, 2019

It will likely break existing scripts that uses the output.

Ya, agree. Though I think we are already queuing master up to be a breaking change release (due to things like Node version support changes), right?

@rwjblue rwjblue changed the title Fix CSP command Ensure csp-headers command emits to standard out (to allow for piping into other programs) Aug 9, 2019
@rwjblue rwjblue merged commit 9cd237f into adopted-ember-addons:master Aug 9, 2019
@Exelord Exelord deleted the fix-csp-command branch August 9, 2019 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants