[ ] Unit or Functional tests are included in the PR
Description:
The code to execute a command's validation and run phases exists in two places: once for the default command and once for other commands. It's too easy to make a change to how a command is executed in one spot and not the other.
This PR unifies command validation and execution for both default and other commands.
Type: cleanup
The following has been addressed in the PR:
prettier
as per the readme code style guidelinesDescription:
The code to execute a command's validation and run phases exists in two places: once for the default command and once for other commands. It's too easy to make a change to how a command is executed in one spot and not the other.
This PR unifies command validation and execution for both default and other commands.