DEV Community

Discussion on: Introducing minicli: a microframework for CLI-centric PHP applications

Collapse
 
syntaxseed profile image
SyntaxSeed (Sherri W)

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.

Collapse
 
erikaheidi profile image
Erika Heidi

That's a great idea Sherri, thanks for sharing! Updates coming soon 😊