Skip to content

Commit

Permalink
Use commander preAction hook for setMode
Browse files Browse the repository at this point in the history
Hooks are new to commander v8. We can use hooks to ensure that `setMode`
is called before every command is invoked.
  • Loading branch information
aeisenberg committed Jun 1, 2021
1 parent 4b4a5ee commit 539d968
Show file tree
Hide file tree
Showing 18 changed files with 4,066 additions and 2,676 deletions.
8 changes: 3 additions & 5 deletions lib/runner.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/runner.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 539d968

Please sign in to comment.