Code-Statistics
view release on metacpan or search on metacpan
lib/Code/Statistics/App/Command.pm view on Meta::CPAN
23456789101112131415161718192021use
warnings;
package
Code::Statistics::App::Command;
$Code::Statistics::App::Command::VERSION
=
'1.190680'
;
# ABSTRACT: base class for commands
use
App::Cmd::Setup -command;
sub
cstat {
return
shift
->app->cstat(
@_
);
}
1;
__END__
=pod
=encoding UTF-8
lib/Code/Statistics/App/Command/collect.pm view on Meta::CPAN
1819202122232425262728293031323334353637
[
'foreign_paths=s'
=>
'file paths in dump are printed in indicated system format; see File::Spec'
],
[
'targets=s'
=>
'specifies targets that will be looked for inside of files; see C::S::Target::*'
],
[
'metrics=s'
=>
'specifies metrics that be tried to be measured on targets; see C::S::Metric::*'
],
);
return
@opts
;
}
sub
execute {
my
(
$self
,
$opt
,
$arg
) =
@_
;
return
$self
->cstat( %{
$opt
} )->collect;
}
1;
__END__
=pod
=encoding UTF-8
lib/Code/Statistics/App/Command/report.pm view on Meta::CPAN
1314151617181920212223242526272829303132
my
@opts
= (
[
'quiet'
=>
'prevents writing of report to screen'
],
[
'file_ignore=s'
=>
'list of regexes matching files that should be ignored in reporting '
],
);
return
@opts
;
}
sub
execute {
my
(
$self
,
$opt
,
$arg
) =
@_
;
return
$self
->cstat( %{
$opt
} )->report;
}
1;
__END__
=pod
=encoding UTF-8
( run in 0.368 second using v1.01-cache-2.11-cpan-d6f9594c0a5 )