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

Fix all variations of generateDisclaimer command to not have wrapper #1530

Closed

Conversation

tlent
Copy link

@tlent tlent commented Oct 28, 2016

Summary

This fixes #1191.

Previously yarn licenses generate-disclaimer would not include the output wrapper header and footer but other valid variations of the same command such as yarn licenses generateDisclaimer would.

Test plan

Previous behavior:
yarn licenses generate-disclaimer outputs disclaimers without wrapper
yarn licenses generateDisclaimer outputs disclaimers with wrapper

New behavior:
yarn licenses generate-disclaimer and yarn licenses generateDisclaimer have the same output without wrapper.

Previously 'yarn licenses generate-disclaimer' would not include the
output wrapper header and footer but other valid variations such as
'yarn licenses generateDisclaimer' would.

Fixes yarnpkg#1191
@sebmck
Copy link
Contributor

sebmck commented Oct 31, 2016

I'd prefer if we made the camelCased versions of the commands illegal instead of allowing this.

sebmck pushed a commit that referenced this pull request Nov 1, 2016
@sebmck
Copy link
Contributor

sebmck commented Nov 1, 2016

Created #1586 to fix this, pending approval.

@sebmck sebmck closed this Nov 1, 2016
sebmck pushed a commit that referenced this pull request Nov 1, 2016
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.

Licence generateDisclaimer - Outputs "junk" to stdout
2 participants