Config-Model-Itself
view release on metacpan or search on metacpan
lib/App/Cme/Command/meta.pm view on Meta::CPAN
my ( $class, $app ) = @_;
return (
[
"dir=s" => "directory where to read and write a model",
{default => 'lib/Config/Model'}
],
[
"dumptype=s" => "dump every values (full), only preset values "
. "or only customized values (default)",
{callbacks => { 'expected values' => sub { $_[0] =~ m/^full|preset|custom$/ ; }}}
],
[ "dev!" => 'use model in ./lib to create a plugin'],
[
"factorize=s" => 'factorize class parameters. Comma separated list of either '.
'"description", "summary", "level", "warp", "status, or just "all"',
{callbacks => { 'expected "all" or a list' => sub { validate_factorize($_[0]); }}},
],
[ "open-item=s" => "force the UI to open the specified node"],
[ "plugin-file=s" => "create a model plugin in this file" ],
[ "load-yaml=s" => "load model from YAML file. Use '-' to load from STDIN" ],
[ "load=s" => "load model from cds file (Config::Model serialisation file). "
."Use '-' to load from STDIN"],
[ "system!" => "read model from system files" ],
[ "test-and-quit=s" => "Used for tests" ],
$class->cme_global_options()
);
( run in 0.490 second using v1.01-cache-2.11-cpan-140bd7fdf52 )