SchemaR/perl/colortheme/modname_with_optional_args.pm

filter: Statementstmt 100% 4 / 4 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 4 / 4 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« SchemaR/perl/colortheme/modname.pm ↑ Summary Schemas/ColorTheme.pm »
1 package Sah::SchemaR::perl::colortheme::modname_with_optional_args;
2  
3 1 our $DATE = '2021-02-02'; # DATE
4 1 our $VERSION = '0.003'; # VERSION
5  
6 1 our $rschema = ["str",[{description=>"\nPerl module name with optional arguments which will be used as import arguments,\njust like the `-MMODULE=ARGS` shortcut that `perl` provides. Examples:\n\n Foo\n Foo::Bar\n Foo::Bar=arg1,arg2\n\nSee also: `perl::modname`.\n\n",examples=>[{valid=>0,value=>""},{valid=>1,value=>"Foo::Bar"},{valid=>1,value=>"Foo::Bar=arg1,arg2"},{valid=>1,validated_value=>"Foo::Bar=arg1,arg2",value=>"Foo-Bar=arg1,arg2"}],match=>"[A-Za-z_][A-Za-z_0-9]*(::[A-Za-z_0-9]+)*(?:=.*)?",summary=>"Perl module name (e.g. Foo::Bar) with optional arguments (e.g. Foo::Bar=arg1,arg2)","x.completion"=>"perl_modname","x.perl.coerce_rules"=>["From_str::normalize_perl_modname"]},{summary=>"Perl module in the ColorTheme::* namespace, without the namespace prefix, with optional args e.g. \"Harmony::Analogous=central_h,120\"","x.completion"=>["perl_modname",{ns_prefix=>"ColorTheme",recurse=>1,recurse_matching=>"all-at-once"}],"x.perl.coerce_rules"=>[["From_str::normalize_perl_modname",{ns_prefix=>"ColorTheme"}]]}],["perl::modname_with_optional_args","str"]];
7  
8 1 1;
9 # ABSTRACT: Perl module in the ColorTheme::* namespace, without the namespace prefix, with optional args e.g. "Harmony::Analogous=central_h,120"
10  
11 __END__
« SchemaR/perl/colortheme/modname.pm ↑ Summary Schemas/ColorTheme.pm »