| 1 | 5 | ▶ | use 5.008; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 5 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 5 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package Class::Scaffold::App::CommandLine; | ||
| 6 | 5 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 5 | $Class::Scaffold::App::CommandLine::VERSION = '1.102280'; | |
| 8 | } | ||
| 9 | # ABSTRACT: Base class for command line-based framework applications | ||
| 10 | 5 | ▶ | use Class::Scaffold::Environment; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 5 | ▶ | use Property::Lookup; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 5 | ▶ | use parent qw(Class::Scaffold::App Getopt::Inherited); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 5 | ▶ | use constant CONTEXT => 'generic/shell'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 5 | ▶ | use constant GETOPT => (qw(dryrun conf=s environment)); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | 0 | ▶ | sub app_init { |
|
Subroutine
app_init: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 17 | 0 | my $self = shift; | |
| 18 | 0 | $self->do_getopt; | |
| 19 | # Add a hash configurator layer for getopt before the superclass has a | ||
| 20 | # chance to add the file configurator; this way, getopt definitions take | ||
| 21 | # precedence over what's in the conf file. | ||
| 22 | 0 | Property::Lookup->instance->add_layer(hash => scalar $self->opt); | |
| 23 | 0 | $self->SUPER::app_init(@_); | |
| 24 | } | ||
| 25 | |||
| 26 | 0 | ▶ | sub app_finish { |
|
Subroutine
app_finish: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 27 | 0 | my $self = shift; | |
| 28 | 0 | $self->delegate->disconnect; | |
| 29 | } | ||
| 30 | 5 | 1; | |
| 31 | |||
| 32 | |||
| 33 | __END__ | ||