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