view release on metacpan or search on metacpan
lib/App/Environ/Que.pm view on Meta::CPAN
use App::Environ;
use App::Environ::Mojo::Pg;
use Carp qw(croak);
use Cpanel::JSON::XS;
use Params::Validate qw( validate_pos validate );
my $INSTANCE;
my $sql = q{
INSERT INTO public.que_jobs
lib/App/Environ/Que.pm view on Meta::CPAN
my $JSON = Cpanel::JSON::XS->new;
sub instance {
my $class = shift;
my ($connector) = validate_pos( @_, 1 );
unless ($INSTANCE) {
my $pg = App::Environ::Mojo::Pg->pg($connector);
$INSTANCE = bless { pg => $pg }, $class;
}
lib/App/Environ/Que.pm view on Meta::CPAN
my __PACKAGE__ $self = shift;
my $cb = pop;
croak 'No cb' unless $cb;
my %params = validate( @_, $VALIDATION{enqueue} );
my $args = $JSON->encode( $params{args} );
$self->{pg}->db->query(
$sql,
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/ErrorCalculator.pm view on Meta::CPAN
$table->attach_defaults(
$funcentry, 1, 2, # left/right
1, 2, # top/bottom
);
$funcentry->signal_connect(
activate => \&_validate_func,
);
$funcentry->signal_connect(
changed => \&_validate_func,
);
$funcentry->set_text('f = a * x^2');
$funcentry->show;
my $inentry = Gtk2::Entry->new;
lib/App/ErrorCalculator.pm view on Meta::CPAN
my $valbutton = Gtk2::Button->new('Validate');
$table->attach_defaults(
$valbutton, 2, 3, # left/right
1, 2, # top/bottom
);
$valbutton->signal_connect( clicked => \&_validate_func );
$valbutton->show;
my $inbutton = Gtk2::Button->new('Select File');
$table->attach_defaults(
$inbutton, 2, 3, # left/right
lib/App/ErrorCalculator.pm view on Meta::CPAN
$func = $func->apply_derivatives()->simplify();
return($nobj, $func);
}
my ($name, $body);
sub _validate_func {
my $f = $funcentry->get_text;
($name, $body) = _parse_function($f);
if (not defined $name) {
$funclabel->set_text('Invalid Function');
}
view all matches for this distribution
view release on metacpan or search on metacpan
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
view all matches for this distribution
view release on metacpan or search on metacpan
script/exifshow view on Meta::CPAN
You can also put configuration for multiple programs inside a single file, and use filter C<program=NAME> in section names, e.g. C<[program=NAME ...]> or C<[SOMESECTION program=NAME]>. The section will then only be used when the reading program match...
You can also filter a section by environment variable using the filter C<env=CONDITION> in section names. For example if you only want a section to be read if a certain environment variable is true: C<[env=SOMEVAR ...]> or C<[SOMESECTION env=SOMEVAR ...
To load and configure plugins, you can use either the C<-plugins> parameter (e.g. C<< -plugins=DumpArgs >> or C<< -plugins=DumpArgs@before_validate_args >>), or use the C<[plugin=NAME ...]> sections, for example:
[plugin=DumpArgs]
-event=before_validate_args
-prio=99
[plugin=Foo]
-event=after_validate_args
arg1=val1
arg2=val2
which is equivalent to setting C<< -plugins=-DumpArgs@before_validate_args@99,-Foo@after_validate_args,arg1,val1,arg2,val2 >>.
List of available configuration parameters:
filename (see --filename)
format (see --format)
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Fasops/Command/axt2fas.pm view on Meta::CPAN
MARKDOWN
return $desc;
}
sub validate_args {
my ( $self, $opt, $args ) = @_;
if ( !@{$args} ) {
my $message = "This command need one or more input files.\n\tIt found";
$message .= sprintf " [%s]", $_ for @{$args};
view all matches for this distribution
view release on metacpan or search on metacpan
t/App-Fetchware-lookup.t view on Meta::CPAN
<i>or</i>,
% gpg --import KEYS
% gpg --verify httpd-2.2.8.tar.gz.asc
</pre>
<p>We offer MD5 hashes as an alternative to validate the integrity
of the downloaded files. A unix program called <code>md5</code> or
<code>md5sum</code> is included in many unix distributions. It is
also available as part of <a
href="http://www.gnu.org/software/textutils/textutils.html">GNU
Textutils</a>. Windows users can get binary md5 programs from <a
view all matches for this distribution
view release on metacpan or search on metacpan
script/reencode-video-with-libx264 view on Meta::CPAN
You can also put configuration for multiple programs inside a single file, and use filter C<program=NAME> in section names, e.g. C<[program=NAME ...]> or C<[SOMESECTION program=NAME]>. The section will then only be used when the reading program match...
You can also filter a section by environment variable using the filter C<env=CONDITION> in section names. For example if you only want a section to be read if a certain environment variable is true: C<[env=SOMEVAR ...]> or C<[SOMESECTION env=SOMEVAR ...
To load and configure plugins, you can use either the C<-plugins> parameter (e.g. C<< -plugins=DumpArgs >> or C<< -plugins=DumpArgs@before_validate_args >>), or use the C<[plugin=NAME ...]> sections, for example:
[plugin=DumpArgs]
-event=before_validate_args
-prio=99
[plugin=Foo]
-event=after_validate_args
arg1=val1
arg2=val2
which is equivalent to setting C<< -plugins=-DumpArgs@before_validate_args@99,-Foo@after_validate_args,arg1,val1,arg2,val2 >>.
List of available configuration parameters:
audio_sample_rate (see --audio-sample-rate)
crf (see --crf)
view all matches for this distribution
view release on metacpan or search on metacpan
script/digest-files view on Meta::CPAN
You can also put configuration for multiple programs inside a single file, and use filter C<program=NAME> in section names, e.g. C<[program=NAME ...]> or C<[SOMESECTION program=NAME]>. The section will then only be used when the reading program match...
You can also filter a section by environment variable using the filter C<env=CONDITION> in section names. For example if you only want a section to be read if a certain environment variable is true: C<[env=SOMEVAR ...]> or C<[SOMESECTION env=SOMEVAR ...
To load and configure plugins, you can use either the C<-plugins> parameter (e.g. C<< -plugins=DumpArgs >> or C<< -plugins=DumpArgs@before_validate_args >>), or use the C<[plugin=NAME ...]> sections, for example:
[plugin=DumpArgs]
-event=before_validate_args
-prio=99
[plugin=Foo]
-event=after_validate_args
arg1=val1
arg2=val2
which is equivalent to setting C<< -plugins=-DumpArgs@before_validate_args@99,-Foo@after_validate_args,arg1,val1,arg2,val2 >>.
List of available configuration parameters:
algorithm (see --algorithm)
digest_args (see --digest-args)
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/FilterUtils/2base.pm view on Meta::CPAN
[ 'version|v' => "show version number" ],
[ 'help|h' => "display a usage message" ],
);
}
sub validate_args {
my ($self, $opt, $args) = @_;
if ($opt->{'help'} || !@$args) {
my ($opt, $usage) = describe_options(
usage_desc(),
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/FirefoxMultiAccountContainersUtils.pm view on Meta::CPAN
summary => 'Name for the new container',
schema => ['str*', min_len=>1],
pos => 1,
},
color => {
schema => ['str*', match=>qr/\A\w+\z/], # XXX currently not validated for valid values
},
icon => {
schema => ['str*', match=>qr/\A\w+\z/], # XXX currently not validated for valid values
},
},
features => {
dry_run => 1,
},
view all matches for this distribution
view release on metacpan or search on metacpan
script/restart-firefox view on Meta::CPAN
You can also put configuration for multiple programs inside a single file, and use filter C<program=NAME> in section names, e.g. C<[program=NAME ...]> or C<[SOMESECTION program=NAME]>. The section will then only be used when the reading program match...
You can also filter a section by environment variable using the filter C<env=CONDITION> in section names. For example if you only want a section to be read if a certain environment variable is true: C<[env=SOMEVAR ...]> or C<[SOMESECTION env=SOMEVAR ...
To load and configure plugins, you can use either the C<-plugins> parameter (e.g. C<< -plugins=DumpArgs >> or C<< -plugins=DumpArgs@before_validate_args >>), or use the C<[plugin=NAME ...]> sections, for example:
[plugin=DumpArgs]
-event=before_validate_args
-prio=99
[plugin=Foo]
-event=after_validate_args
arg1=val1
arg2=val2
which is equivalent to setting C<< -plugins=-DumpArgs@before_validate_args@99,-Foo@after_validate_args,arg1,val1,arg2,val2 >>.
List of available configuration parameters:
firefox_cmd (see --firefox-cmd)
format (see --format)
view all matches for this distribution
view release on metacpan or search on metacpan
script/gen-fish-complete-from-getopt-long-complete-script view on Meta::CPAN
You can also put configuration for multiple programs inside a single file, and use filter C<program=NAME> in section names, e.g. C<[program=NAME ...]> or C<[SOMESECTION program=NAME]>. The section will then only be used when the reading program match...
You can also filter a section by environment variable using the filter C<env=CONDITION> in section names. For example if you only want a section to be read if a certain environment variable is true: C<[env=SOMEVAR ...]> or C<[SOMESECTION env=SOMEVAR ...
To load and configure plugins, you can use either the C<-plugins> parameter (e.g. C<< -plugins=DumpArgs >> or C<< -plugins=DumpArgs@before_validate_args >>), or use the C<[plugin=NAME ...]> sections, for example:
[plugin=DumpArgs]
-event=before_validate_args
-prio=99
[plugin=Foo]
-event=after_validate_args
arg1=val1
arg2=val2
which is equivalent to setting C<< -plugins=-DumpArgs@before_validate_args@99,-Foo@after_validate_args,arg1,val1,arg2,val2 >>.
List of available configuration parameters:
cmdname (see --cmdname)
compname (see --compname)
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Foca/Server.pm view on Meta::CPAN
(open3).
Now the question is.. is Foca secure? Well it depends on you. Depends if you
run it as non-root user and the commands you define. Foca will try to do
things to protect, for example it will reject all requests that have pipes (|),
I/O redirection (>, <, <<, >>), additionally the HTTP request will be validated
before it gets executed via the call of C<validate_request()> (L<App::Foca::Server>
returns true all the time so if you want to add extra functionality please
create a subclass and re-define the method).
=head1 EXAMPLE
lib/App/Foca/Server.pm view on Meta::CPAN
# Ok, the command is valid?
unless ($commands->{$command}) {
return $self->build_response(HTTP_NOT_FOUND, "Unknown command");
}
# Validate request
my ($is_valid, $msg) = $self->validate_request($command, $request);
unless ($is_valid) {
if ($msg) {
return $self->build_response(HTTP_FORBIDDEN, $msg);
} else {
return $self->build_response(HTTP_FORBIDDEN);
lib/App/Foca/Server.pm view on Meta::CPAN
my ($self, $code, $body) = @_;
my $res = HTTP::Response->new($code, status_message($code));
my %default_headers = (
pragma => "must-revalidate, no-cache, no-store, expires: -1",
no_cache => 1,
expires => -1,
cache_control => "no-cache, no-store, must-revalidate",
content_type => 'text/plain',
);
while(my($k, $v) = each %default_headers) {
$res->header($k, $v);
}
# A body?
$res->content($body) if $body;
return $res;
}
=head2 B<validate_request($command, $request)>
re-define this method if you want to add some extra security. By default all
requests are valid at this point.
=cut
sub validate_request {
my ($self, $command, $request) = @_;
return 1;
}
view all matches for this distribution
view release on metacpan or search on metacpan
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/ForExample/Catalog.pm view on Meta::CPAN
# alias 'my-monit'='monit -vc [% home %]/monitrc'
#
# my-monit
# my-monit start all
# my-monit quit
# my-monit validate
# ...
#
_END_
;
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/FromUnixtime.pm view on Meta::CPAN
print "$0 $VERSION\n";
exit 1;
},
) or _show_usage(2);
_validate_options($config, $argv);
}
sub _validate_options {
my ($config, $argv) = @_;
$config->{format} ||= RC->{format} || $DEFAULT_DATE_FORMAT;
$config->{'start-bracket'} ||= RC->{'start-bracket'} || '(';
$config->{'end-bracket'} ||= RC->{'end-bracket'} || ')';
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/GSD.pm view on Meta::CPAN
}
return $cmd;
}
# Try to invalidate nscd/unscd cache if present
sub _flush_nscd {
my $self = shift;
return if $^O ne 'linux';
for my $nscd (qw(nscd unscd)) {
# Ignore errors if the daemon is installed, but not running
view all matches for this distribution
view release on metacpan or search on metacpan
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
view all matches for this distribution
view release on metacpan or search on metacpan
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
view all matches for this distribution
view release on metacpan or search on metacpan
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
view all matches for this distribution
view release on metacpan or search on metacpan
script/gen-pericmd-completer view on Meta::CPAN
You can also put configuration for multiple programs inside a single file, and use filter C<program=NAME> in section names, e.g. C<[program=NAME ...]> or C<[SOMESECTION program=NAME]>. The section will then only be used when the reading program match...
You can also filter a section by environment variable using the filter C<env=CONDITION> in section names. For example if you only want a section to be read if a certain environment variable is true: C<[env=SOMEVAR ...]> or C<[SOMESECTION env=SOMEVAR ...
To load and configure plugins, you can use either the C<-plugins> parameter (e.g. C<< -plugins=DumpArgs >> or C<< -plugins=DumpArgs@before_validate_args >>), or use the C<[plugin=NAME ...]> sections, for example:
[plugin=DumpArgs]
-event=before_validate_args
-prio=99
[plugin=Foo]
-event=after_validate_args
arg1=val1
arg2=val2
which is equivalent to setting C<< -plugins=-DumpArgs@before_validate_args@99,-Foo@after_validate_args,arg1,val1,arg2,val2 >>.
List of available configuration parameters:
completion (see --completion)
default_subcommand (see --default-subcommand)
view all matches for this distribution
view release on metacpan or search on metacpan
script/gen-pericmd-script view on Meta::CPAN
=item B<--use-utf8>
Whether to set utf8 flag on output, will be passed to Perinci::CmdLine constructor.
=item B<--validate-args>
Will be passed to Perinci::CmdLine constructor.
=back
script/gen-pericmd-script view on Meta::CPAN
subcommands (see --subcommand)
subcommands_from_package_functions (see --subcommands-from-package-functions)
url (see --url)
use_cleanser (see --use-cleanser)
use_utf8 (see --use-utf8)
validate_args (see --validate-args)
=head1 ENVIRONMENT
=head2 GEN_PERICMD_SCRIPT_OPT => str
view all matches for this distribution
view release on metacpan or search on metacpan
script/genpass-id view on Meta::CPAN
### code_after_shebang
# Note: This script is a CLI for Riap function /App/Genpass/ID/genpass
# and generated automatically using Perinci::CmdLine::Gen version 0.483
# PERICMD_INLINE_SCRIPT: {"code_after_shebang":"...","config_dirs":null,"config_filename":"genpass-id.conf","env_name":"GENPASS_ID_OPT","include":null,"log":null,"pack_deps":1,"pod":0,"read_config":1,"read_env":1,"script_name":"genpass-id","script_su...
my $_pci_metas = {""=>{args=>{num=>{cmdline_aliases=>{n=>{}},default=>1,schema=>["int",{min=>1,req=>1},{}]},patterns=>{cmdline_aliases=>{p=>{}},default=>["%w %w %w","%w %w %w %w","%w %w %w %w %w","%w %w %w %w %w %w","%W%4d%W","%W%6d%s"],description=>...
# This script is generated by Perinci::CmdLine::Inline version 0.541 on Tue Jan 2 11:42:34 2018.
view all matches for this distribution
view release on metacpan or search on metacpan
script/genpass-wordlist view on Meta::CPAN
### code_after_shebang
# Note: This script is a CLI for Riap function /App/Genpass/WordList/genpass
# and generated automatically using Perinci::CmdLine::Gen version 0.483
# PERICMD_INLINE_SCRIPT: {"code_after_shebang":"...","config_dirs":null,"config_filename":"genpass-wordlist.conf","env_name":"GENPASS_WORDLIST_OPT","include":null,"log":null,"pack_deps":1,"pod":0,"read_config":1,"read_env":1,"script_name":"genpass-wo...
my $_pci_metas = {""=>{args=>{num=>{cmdline_aliases=>{n=>{}},default=>1,schema=>["int",{min=>1,req=>1},{}]},patterns=>{cmdline_aliases=>{p=>{}},default=>["%w %w %w","%w %w %w %w","%w %w %w %w %w","%w %w %w %w %w %w","%W%4d%W","%W%6d%s"],description=>...
# This script is generated by Perinci::CmdLine::Inline version 0.541 on Tue Jan 2 11:22:14 2018.
view all matches for this distribution
view release on metacpan or search on metacpan
data/bladder_cancer_GEO.txt view on Meta::CPAN
Platforms: GPL15207 GPL16791 18 Samples
FTP download: GEO (CEL) ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE147nnn/GSE147940/
Series Accession: GSE147940 ID: 200147940
9. The Androgen Receptor Directly Regulates CD44 Expression in Androgen Sensitive Bladder Cancer [ChIP-seq]
(Submitter supplied) To study androgen receptor transcriptomic activation in the presence of androgen in bladder cancer cell lines. A uniquely derived AR expressing clone of the bladder cancer cell line UMUC3 was derived and validated prior to ChIP-...
Organism: Homo sapiens
Type: Genome binding/occupancy profiling by high throughput sequencing
Platform: GPL16791 12 Samples
FTP download: GEO (BED, XLSX) ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE147nnn/GSE147939/
SRA Run Selector: https://www.ncbi.nlm.nih.gov/Traces/study/?acc=PRJNA622581
Series Accession: GSE147939 ID: 200147939
10. The Androgen Receptor Directly Regulates CD44 Expression in Androgen Sensitive Bladder Cancer [gene expression]
(Submitter supplied) To study androgen receptor transcriptomic activation in the presence of androgen in bladder cancer cell lines. A uniquely derived AR expressing clone of the bladder cancer cell line UMUC3 was derived and validated prior to micro...
Organism: Homo sapiens
Type: Expression profiling by array
Platform: GPL15207 6 Samples
FTP download: GEO (CEL) ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE147nnn/GSE147938/
Series Accession: GSE147938 ID: 200147938
data/bladder_cancer_GEO.txt view on Meta::CPAN
Platform: GPL5175 10 Samples
FTP download: GEO (CEL) ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE41nnn/GSE41614/
Series Accession: GSE41614 ID: 200041614
275. Molecular Biomarker Signature for Bladder Cancer Detection
(Submitter supplied) In this study we applied differential gene expression analysis to exfoliated human urothelia obtained from patients of known bladder disease status. Selected targets from the microarray data were validated in an independent set o...
Organism: Homo sapiens
Type: Expression profiling by array
Platform: GPL570 92 Samples
FTP download: GEO (CEL, CHP) ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE31nnn/GSE31189/
Series Accession: GSE31189 ID: 200031189
data/bladder_cancer_GEO.txt view on Meta::CPAN
Platforms: GPL4133 GPL10332 13 Samples
FTP download: GEO (TXT) ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE24nnn/GSE24782/
Series Accession: GSE24782 ID: 200024782
296. Combination of a novel gene expression signature with a clinical nomogram improves the prediction of survival in high-risk bladder cancer Â
(Submitter supplied) Urothelial carcinoma of the bladder is characterized by significant variability in clinical outcomes depending on stage and grade. The addition of molecular information may improve our understanding of such heterogeneity and enha...
Organism: Homo sapiens
Type: Expression profiling by array
Dataset: GDS4456 Platform: GPL570 93 Samples
FTP download: GEO (CEL, TXT) ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE31nnn/GSE31684/
Series Accession: GSE31684 ID: 200031684
data/bladder_cancer_GEO.txt view on Meta::CPAN
Platforms: GPL10067 GPL9186 40 Samples
FTP download: GEO (TXT) ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE20nnn/GSE20418/
Series Accession: GSE20418 ID: 200020418
314. Discovery of microRNAs and other small RNAs in solid human tumors: sequencing
(Submitter supplied) MicroRNAs (miRNAs) are ~22 nucleotide-long, non-coding RNAs that regulate gene silencing. It is known that many human miRNAs are deregulated in numerous types of tumors. Here we report the sequencing of small RNAs from 23 breast,...
Organism: Homo sapiens
Type: Non-coding RNA profiling by high throughput sequencing
Platform: GPL9186 2 Samples
FTP download: GEO (TXT) ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE20nnn/GSE20417/
Series Accession: GSE20417 ID: 200020417
data/bladder_cancer_GEO.txt view on Meta::CPAN
Platform: GPL570 12 Samples
FTP download: GEO (CEL) ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE7nnn/GSE7476/
Series Accession: GSE7476 ID: 200007476
330. Gene expression signatures predict outcome in non-muscle invasive bladder carcinoma - a multi-center validation study
(Submitter supplied) Background Clinically useful molecular markers predicting the clinical course of patients diagnosed with non-muscle invasive bladder cancer are needed to improve treatment outcome. Methods We used custom designed oligonucleotide ...
Organism: Homo sapiens
Type: Expression profiling by array
Platform: GPL4060 808 Samples
FTP download: GEO (TXT) ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE5nnn/GSE5479/
Series Accession: GSE5479 ID: 200005479
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Getconf.pm view on Meta::CPAN
Storage tells if the option is a single-value (default), multi-value
accumulator (e.g. may be specified in command line multiple times, and the
option arguments will be stored in an array) or multi-value hash accumulator
(similar, but option argument is specified as C<key=value>, and the value part
is validated). Note that this specify only type of storage, not the actual
container.
B<NOTE>: Don't specify option with a hash storage and that has sub-options
(see L</"Schema Definition">). Verification can't tell whether the value is
meant for the hash under this option or for one of its sub-options.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Git/Info.pm view on Meta::CPAN
sub _opt_spec
{
return ();
}
sub _validate_args
{
my ( $self, $opt, $args ) = @_;
# no args allowed but options!
$self->usage_error("No args allowed") if @$args;
view all matches for this distribution
view release on metacpan or search on metacpan
LICENSE.txt view on Meta::CPAN
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/GitFind/Actions.pm view on Meta::CPAN
# Special validators for ok, okdir, exec, and execdir.
# Validators return undefined if validation passes, and an error message
# otherwise. Validators take the command and the located parameters
# in @_.
sub _validate_exec {
return "need at least a command name" unless $#_>1;
if($_[$#_] eq '+') {
return "need a {}" unless grep { $_ eq '{}' } @_;
return "{} can't be the first argument to $_[0]" if $_[1] eq '{}';
}
return undef;
}
sub _validate_ok {
return "need at least a command name" unless $#_>1;
return undef;
}
# }}}1
lib/App/GitFind/Actions.pm view on Meta::CPAN
# Inflate %ARGS. Arg is the package providing the actions; no return.
sub _inflate {
my $package = $_[0];
# Hook the validators into %ARGS
$ARGS{exec}->{validator} = \&_validate_exec;
$ARGS{execdir}->{validator} = $ARGS{exec}->{validator};
$ARGS{ok}->{validator} = \&_validate_ok;
$ARGS{okdir}->{validator} = $ARGS{ok}->{validator};
# Hook the actions into %ARGS
while (my ($key, $hrValue) = each %ARGS) {
my $fn = $package->can("do_$key");
view all matches for this distribution
view release on metacpan or search on metacpan
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
view all matches for this distribution