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(cli): --trust flag for trusting cli input #3339
Conversation
The trust option has much finer grained control, which is hard to specify on the command line, so expose just a single boolean flag, which changes trust from false (default) to true.
Is this a work-in-progress? The new option doesn't seem to be getting used/checked anywhere. I also wonder whether |
Codecov Report
@@ Coverage Diff @@
## master #3339 +/- ##
=======================================
Coverage 93.54% 93.54%
=======================================
Files 88 88
Lines 6552 6552
Branches 1509 1509
=======================================
Hits 6129 6129
Misses 393 393
Partials 30 30 Continue to review full report at Codecov.
|
Is there a particular place I should add the test to? I'm not sure where such cli tests should go.
--trust-all looks good, I can change it |
I wasn't talking about tests. I mean that you never actually look at |
Right, thanks! I will rename it to |
Cool, this does seem consistent with how |
Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just tested that this works for me (with a \url
input). Awesome!
I forgot but confirmed that the documentation is generated automatically from cli.js
itself. See https://deploy-preview-3339--katex.netlify.app/docs/cli.html
I just revised the documentation; assuming you approve, I'll merge.
Update: I found PR #2839 which is identical, so I'll add @summersz as a coauthor when merging.
Thanks for improving the documentation and finding the older issue, looks great, please merge whenever convenient, thanks! |
🎉 This PR is included in version 0.13.19 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@ngzhian Thanks for the PR! |
The trust option has much finer grained control, which is hard to
specify on the command line, so expose just a single boolean flag, which
changes trust from false (default) to true.