CLI::Driver
This is a module to drive your cli tool from a yaml config file.
use CLI::Driver; my $cli = CLI::Driver->new; my $action = $cli->get_action( name => $ActionFromArgv ); if ($action) { $action->do; } else { $Driver->fatal("failed to find action in config file"); } ### cli-driver.yml example do-something: class: name: My::App attr: required: hard: f: foo soft: h: home optional: flags: dry-run: dry_run_flag method: name: my_method args: required: hard: soft: optional: flags:
To install CLI::Driver, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CLI::Driver
CPAN shell
perl -MCPAN -e shell install CLI::Driver
For more information on module installation, please visit the detailed CPAN module installation guide.