NAME
CLI::Driver - Drive your cli tool with YAML
SYNOPSIS
This is a module to drive your cli tool from a yaml config file.
use CLI::Driver;
my $cli = CLI::Driver->new;
$cli->run;
#################################
# cli-driver.yml example
#################################
do-something:
desc: "Action description"
deprecated:
status: false
replaced-by: na
class:
name: My::App
attr:
required:
hard:
f: foo
soft:
h: home
a: '@array_arg'
optional:
flags:
dry-run: dry_run_flag
method:
name: my_method
args:
required:
hard:
soft:
optional:
flags:
help:
args:
f: "Additional help info for argument 'f'"
examples:
- "-f foo -a val1 -a val2 --dry-run"