view release on metacpan or search on metacpan
lib/App/Cme/Command/check.pm view on Meta::CPAN
sub opt_spec {
my ( $class, $app ) = @_;
return (
[ "strict!" => "cme will exit 1 if warnings are found during check" ],
$class->cme_global_options,
);
}
sub usage_desc {
my ($self) = @_;
my $desc = $self->SUPER::usage_desc; # "%c COMMAND %o"
return "$desc [application] [ config_file ]";
}
sub description {
my ($self) = @_;
return $self->get_documentation;
}
sub execute {
my ($self, $opt, $args) = @_;
lib/App/Cme/Command/dump.pm view on Meta::CPAN
regex => qr/^(?:json|ya?ml|perl|cml|cds)$/i,
default => 'yaml'
},
],
$class->cme_global_options,
);
}
sub usage_desc {
my ($self) = @_;
my $desc = $self->SUPER::usage_desc; # "%c COMMAND %o"
return "$desc [application] [ config_file ] [ -dumptype full|custom ] [ path ]";
}
sub description {
my ($self) = @_;
return $self->get_documentation;
}
sub execute {
my ($self, $opt, $args) = @_;
lib/App/Cme/Command/edit.pm view on Meta::CPAN
return (
[ "ui|if=s" => "user interface type. Either tk, curses, shell" ],
[ "backup:s" => "Create a backup of configuration files before saving." ],
[ "open-item=s" => "open a specific item of the configuration" ],
$class->cme_global_options,
);
}
sub usage_desc {
my ($self) = @_;
my $desc = $self->SUPER::usage_desc; # "%c COMMAND %o"
return "$desc [application] [ file ] [ -ui tk|curses|shell ] [ -open-item xxx ] ";
}
sub description {
my ($self) = @_;
return $self->get_documentation;
}
sub execute {
my ($self, $opt, $args) = @_;
lib/App/Cme/Command/fix.pm view on Meta::CPAN
my ( $class, $app ) = @_;
return (
[ "from=s@" => "fix only a subset of a configuration tree" ],
[ "filter=s" => "pattern to select the element name to be fixed"],
$class->cme_global_options,
);
}
sub usage_desc {
my ($self) = @_;
my $desc = $self->SUPER::usage_desc; # "%c COMMAND %o"
return "$desc [application] [ file ]";
}
sub description {
my ($self) = @_;
return $self->get_documentation;
}
sub execute {
my ($self, $opt, $args) = @_;
lib/App/Cme/Command/fusefs.pm view on Meta::CPAN
],
[ "dfuse!" => "debug fuse problems" ],
[ "dir-char=s" => "string to replace '/' in configuration parameter names"],
[ "backup:s" => "Create a backup of configuration files before saving." ],
$class->cme_global_options,
);
}
sub usage_desc {
my ($self) = @_;
my $desc = $self->SUPER::usage_desc; # "%c COMMAND %o"
return "$desc [application] [file ] -fuse-dir xxx [ -dir-char x ] ";
}
sub description {
my ($self) = @_;
return $self->get_documentation;
}
sub execute {
my ($self, $opt, $args) = @_;
lib/App/Cme/Command/gen_class_pod.pm view on Meta::CPAN
$App::Cme::Command::gen_class_pod::VERSION = '1.043';
use strict;
use warnings;
use 5.10.1;
use App::Cme -command ;
use Config::Model::Utils::GenClassPod;
sub command_names {
my $self = shift ;
return ( 'gen-class-pod' , $self->SUPER::command_names );
}
sub description {
return << "EOD"
Generate pod documentation from configuration models found in ./lib directory
EOD
}
sub execute {
lib/App/Cme/Command/migrate.pm view on Meta::CPAN
sub opt_spec {
my ( $class, $app ) = @_;
return (
[ "backup:s" => "Create a backup of configuration files before saving." ],
$class->cme_global_options,
);
}
sub usage_desc {
my ($self) = @_;
my $desc = $self->SUPER::usage_desc; # "%c COMMAND %o"
return "$desc [application] [file ]";
}
sub description {
my ($self) = @_;
return $self->get_documentation;
}
sub execute {
my ($self, $opt, $args) = @_;
lib/App/Cme/Command/modify.pm view on Meta::CPAN
sub opt_spec {
my ( $class, $app ) = @_;
return (
[ "backup:s" => "Create a backup of configuration files before saving." ],
$class->cme_global_options,
);
}
sub usage_desc {
my ($self) = @_;
my $desc = $self->SUPER::usage_desc; # "%c COMMAND %o"
return "$desc [application] [file ] instructions";
}
sub description {
my ($self) = @_;
return $self->get_documentation;
}
sub execute {
my ($self, $opt, $args) = @_;
lib/App/Cme/Command/run.pm view on Meta::CPAN
sub validate_args {
my ($self, $opt, $args) = @_;
$self->check_unknown_args($args);
return;
}
sub usage_desc {
my ($self) = @_;
my $desc = $self->SUPER::usage_desc; # "%c COMMAND %o"
return "$desc [ script ] [ -args foo=12 [ -args bar=13 ]";
}
sub description {
my ($self) = @_;
return $self->get_documentation;
}
sub check_script_arguments ($self, $opt, $script_name) {
if ($opt->{list} or not $script_name) {
lib/App/Cme/Command/search.pm view on Meta::CPAN
[
"narrow-search=s" => "narrows down the search to element, value, key, summary, description or help",
{ regex => qr/^(?:element|value|key|summary|description|help|all)$/, default => 'all' }
],
$class->cme_global_options,
);
}
sub usage_desc {
my ($self) = @_;
my $desc = $self->SUPER::usage_desc; # "%c COMMAND %o"
return "$desc [application] [ config_file ] -search xxx [ -narrow-search ... ] " ;
}
sub description {
my ($self) = @_;
return $self->get_documentation;
}
sub execute {
my ($self, $opt, $args) = @_;
lib/App/Cme/Command/shell.pm view on Meta::CPAN
return (
[ "open-item=s" => "open a specific item of the configuration" ],
[ "backup:s" => "Create a backup of configuration files before saving." ],
[ "bare!" => "run bare terminal UI"],
$class->cme_global_options,
);
}
sub usage_desc {
my ($self) = @_;
my $desc = $self->SUPER::usage_desc; # "%c COMMAND %o"
return "$desc [application] [file ]";
}
sub description {
my ($self) = @_;
return $self->get_documentation;
}
sub execute {
my ($self, $opt, $args) = @_;
lib/App/Cme/Command/update.pm view on Meta::CPAN
my ( $class, $app ) = @_;
return (
[ "edit!" => "Run editor after update is done" ],
[ "backup:s" => "Create a backup of configuration files before saving." ],
$class->cme_global_options,
);
}
sub usage_desc {
my ($self) = @_;
my $desc = $self->SUPER::usage_desc; # "%c COMMAND %o"
return "$desc [application] [file ]";
}
sub description {
my ($self) = @_;
return $self->get_documentation;
}
sub execute {
my ($self, $opt, $args) = @_;