I wish to know is there any existing perl module which can provide the framework to create new CLI commands ?
Thanks Arpit
I wish to know is there any existing perl module which can provide the framework to create new CLI commands ?
Thanks Arpit
There are lots and lots of them. For example see here.
To get you started, perhaps have a look at Getopt::Long::Descriptive. Another suggesion, if you want to create command-driven applications (like git
commands) is to have a look at App::Cmd.
If you're using Moose, there are modules which integrate it with the above (e.g. MooseX::Getopt and MooseX::App::Cmd) though I find the start up time quite slow.
I have used MooseX::App with success in my last project. It's a Moose based solution, and it's easy to use.
If you don“t want Moose, App::Cmd is good.