0

I wish to know is there any existing perl module which can provide the framework to create new CLI commands ?

Thanks Arpit

Arpit
  • 4,259
  • 10
  • 38
  • 43

2 Answers2

2

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.

stevenl
  • 6,736
  • 26
  • 33
1

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.

Miguel Prz
  • 13,718
  • 29
  • 42