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

Use commander preAction hook for setMode #536

Merged
merged 1 commit into from
Jun 2, 2021
Merged

Conversation

aeisenberg
Copy link
Contributor

Hooks are new to commander v8. We can use hooks to ensure that setMode
is called before every command is invoked.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

Hooks are new to commander v8. We can use hooks to ensure that `setMode`
is called before every command is invoked.
Copy link
Contributor

@adityasharad adityasharad left a comment

Choose a reason for hiding this comment

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

Nice. Do any of our runner tests check the version?

@aeisenberg aeisenberg merged commit 1d05ad7 into main Jun 2, 2021
@aeisenberg aeisenberg deleted the aeisenberg/commander branch June 2, 2021 01:35
@aeisenberg
Copy link
Contributor Author

Nice. Do any of our runner tests check the version?

No. We have no tests for that.

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

Successfully merging this pull request may close these issues.

2 participants