Is it possible in commander.js to check that a setup command has been run and completed before allowing any other actions to be run.
If a command is attempted to be run it will show a message to run the $ command auth first
Is it possible in commander.js to check that a setup command has been run and completed before allowing any other actions to be run.
If a command is attempted to be run it will show a message to run the $ command auth first
Copyright © 2021 Jogjafile Inc.
There is no way to easily do that in commander.js. You need to do that on each commands
.action, or you could do it when you setup the commander.