Yancy/Command/backend.pm

filter: Statementstmt 66.6% 10 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 16.6% 1 / 6 Podpod 100% 1 / 1 totaltotal 54.5% 12 / 22 CC 1 SCAR 2.2
CC
1
Cov
67%
help
2.0
__ANON__
1.1
__ANON__
1.1
CRAP 1.2
« Yancy/Backend/Pg.pm ↑ Summary Yancy/Backend/Role/DBI.pm »
1 package Yancy::Command::backend;
2 1 our $VERSION = '1.088';
3 # ABSTRACT: Commands for working with Yancy backends
4  
5 #pod =head1 SYNOPSIS
6 #pod
7 #pod Usage: APPLICATION backend COMMAND
8 #pod
9 #pod ./myapp.pl backend copy sqlite:prod.db users
10 #pod
11 #pod =head1 DESCRIPTION
12 #pod
13 #pod =head1 SEE ALSO
14 #pod
15 #pod =cut
16  
17 1 ▶use Mojo::Base 'Mojolicious::Commands';
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 1 has description => 'Work with Yancy backend';
20 0 ▶has usage => sub { shift->extract_usage };
Subroutine __ANON__: not called CC=1 SCAR=1.2
21 0 ▶has hint => sub { "\nSee 'APPLICATION backend help COMMAND' for more information on a specific command.\n" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
22 0 ▶has message => sub { shift->usage . "\nCommands:\n" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
23  
24 # Mojolicious::Commands delegates to a module in this namespace
25 0 ▶has namespaces => sub { [ 'Yancy::Command::backend' ] };
Subroutine __ANON__: not called CC=1 SCAR=1.2
26  
27 0 ▶sub help { shift->run( @_ ) }
Subroutine help: not called CC=1 SCAR=6.9
Pod documented
28  
29 1 1;
30  
31 __END__
« Yancy/Backend/Pg.pm ↑ Summary Yancy/Backend/Role/DBI.pm »