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

feat: add verbosity flag to CLI #214

Merged
merged 2 commits into from Dec 24, 2020
Merged

feat: add verbosity flag to CLI #214

merged 2 commits into from Dec 24, 2020

Conversation

JustinBeckwith
Copy link
Owner

@JustinBeckwith JustinBeckwith commented Dec 24, 2020

Fixes #213. This adds a --verbosity flag, which defaults to WARNING. Skipped links now are hidden by default, unless verbosity is set to INFO or DEBUG.

@case
Copy link

case commented Dec 24, 2020

🎉🎉🎉

@JustinBeckwith JustinBeckwith merged commit d20cff5 into master Dec 24, 2020
@delete-merged-branch delete-merged-branch bot deleted the verbo branch December 24, 2020 02:33
@github-actions
Copy link

🎉 This PR is included in version 2.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Comment on lines -131 to -135
if (typeof flags.skip === 'string') {
opts.linksToSkip = flags.skip.split(' ').filter(x => !!x);
} else if (Array.isArray(flags.skip)) {
opts.linksToSkip = flags.skip;
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: removing the support for skip to be a list is a breaking change (when using the linkinator.config.json config file).

Was this intentional?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like a bug :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggestion: Add option to hide skipped files in console output
3 participants