Code-Statistics
view release on metacpan or search on metacpan
lib/Code/Statistics/App/Command.pm view on Meta::CPAN
use 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
[ '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
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 1.528 second using v1.01-cache-2.11-cpan-49f99fa48dc )