Tip:
The sub-commands can extend the DefaultController for the command, over-writing the handle() method, but inheriting the other methods from the DefaultController, in case for example, you want a method in the DefaultController which handles flags, but don't want to re-define that in all the sub-commands.
Tip:
The sub-commands can extend the
DefaultController
for the command, over-writing thehandle()
method, but inheriting the other methods from theDefaultController
, in case for example, you want a method in theDefaultController
which handles flags, but don't want to re-define that in all the sub-commands.That's a great idea Sherri, thanks for sharing! Updates coming soon 😊