-
Notifications
You must be signed in to change notification settings - Fork 583
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: experimental command line flag to print the dependency tree #577
Conversation
src/lib/snyk-test/run-test.ts
Outdated
@@ -255,6 +266,9 @@ async function assembleLocalPayloads(root, options): Promise<Payload[]> { | |||
|
|||
for (const depRoot of deps.depRoots) { | |||
const pkg = depRoot.depTree; | |||
if (options['print-dependencies']) { |
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.
Can I ask for print-deps
instead? And have it appear in our help text? 🙏
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.
Ok, changed it to be supported in both test
and monitor
.
I'd rather not make it a stable feature, so marked as "experimental" in help.
Probably it should be a separate command.
961c358
to
a0fc845
Compare
a0fc845
to
c431bc4
Compare
@kyegupov If it's not a big issue, I'd vote for a separate command as well. I believe that sorting out all the things like |
@kyegupov you handle |
🎉 This PR is included in version 1.178.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What does this PR do?
Experimental undocumented flag
--print-dependencies
forsnyk test
, useful for debugging.