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: propagate argument to all modules #1878

Merged
merged 1 commit into from May 4, 2021
Merged

Conversation

miiila
Copy link
Contributor

@miiila miiila commented May 4, 2021

Parse args as a first things, before other modules are required.
That will allow others to pick arguments.

@miiila miiila self-assigned this May 4, 2021
@miiila miiila requested review from a team as code owners May 4, 2021 11:10
@github-actions
Copy link
Contributor

github-actions bot commented May 4, 2021

Warnings
⚠️ You've modified files in src/ directory, but haven't updated anything in test folder. Is there something that could be tested?

Generated by 🚫 dangerJS against b68c688

Parse args as a first things, before other modules are required.
That will allow others to pick arguments.
@miiila miiila force-pushed the fix/parse-args-as-first-thing branch from e5933b1 to b68c688 Compare May 4, 2021 11:18
@github-actions
Copy link
Contributor

github-actions bot commented May 4, 2021

Expected release notes (by @miiila)

fixes:
propagate argument to all modules (b68c688)

  • I hereby acknowledge these release notes are 🥙 AWESOME 🥙

Copy link
Member

@anthogez anthogez left a comment

Choose a reason for hiding this comment

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

Small question... why we are not propagating this globalArgs also in?
https://github.com/snyk/snyk/blob/b68c6882c7a1703428c58c191718a1d72bbe84ab/src/cli/index.ts#L427

@miiila
Copy link
Contributor Author

miiila commented May 4, 2021

@anthogez We do: https://github.com/snyk/snyk/blob/b68c6882c7a1703428c58c191718a1d72bbe84ab/src/cli/index.ts#L313

Copy link
Member

@anthogez anthogez left a comment

Choose a reason for hiding this comment

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

🤦 LGTM

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