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 --debug CLI flag #964

Merged
merged 1 commit into from
Jun 26, 2020
Merged

Add --debug CLI flag #964

merged 1 commit into from
Jun 26, 2020

Conversation

ehmicky
Copy link
Contributor

@ehmicky ehmicky commented Jun 26, 2020

This adds a --debug CLI flag to all commands.

When enabled, this prints additional information in @netlify/config showing the configuration before and after resolution.
It also prints additional information inside @netlify/build when using netlify build.

This could prove very useful when debugging bug reports that might be configuration-related.

Instead of adding the flag to each command, this PR adds it to the base command, since all commands use @netlify/config.

This PR includes a test for this new flag.

@ehmicky ehmicky added the type: chore work needed to keep the product and development running smoothly label Jun 26, 2020
@ehmicky ehmicky self-assigned this Jun 26, 2020
@ehmicky ehmicky merged commit da358e4 into master Jun 26, 2020
@ehmicky ehmicky deleted the chore/add-debug-flag branch June 26, 2020 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants