| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Beam::Runner::Command; |
|
2
|
|
|
|
|
|
|
our $VERSION = '0.014'; |
|
3
|
|
|
|
|
|
|
# ABSTRACT: Main command handler delegating to individual commands |
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
#pod =head1 SYNOPSIS |
|
6
|
|
|
|
|
|
|
#pod |
|
7
|
|
|
|
|
|
|
#pod exit Beam::Runner::Command->run( $cmd => @args ); |
|
8
|
|
|
|
|
|
|
#pod |
|
9
|
|
|
|
|
|
|
#pod =head1 DESCRIPTION |
|
10
|
|
|
|
|
|
|
#pod |
|
11
|
|
|
|
|
|
|
#pod This is the entry point for the L command which loads and |
|
12
|
|
|
|
|
|
|
#pod runs the specific C class. |
|
13
|
|
|
|
|
|
|
#pod |
|
14
|
|
|
|
|
|
|
#pod =head1 SEE ALSO |
|
15
|
|
|
|
|
|
|
#pod |
|
16
|
|
|
|
|
|
|
#pod The L commands: L, |
|
17
|
|
|
|
|
|
|
#pod L, L |
|
18
|
|
|
|
|
|
|
#pod |
|
19
|
|
|
|
|
|
|
#pod =cut |
|
20
|
|
|
|
|
|
|
|
|
21
|
1
|
|
|
1
|
|
46715
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
23
|
|
|
22
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
22
|
|
|
23
|
1
|
|
|
1
|
|
265
|
use Module::Runtime qw( use_module compose_module_name ); |
|
|
1
|
|
|
|
|
1207
|
|
|
|
1
|
|
|
|
|
5
|
|
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub run { |
|
26
|
1
|
|
|
1
|
0
|
991
|
my ( $class, $cmd, @args ) = @_; |
|
27
|
1
|
|
|
|
|
5
|
my $cmd_class = compose_module_name( 'Beam::Runner::Command', $cmd ); |
|
28
|
1
|
|
|
|
|
113
|
return use_module( $cmd_class )->run( @args ); |
|
29
|
|
|
|
|
|
|
} |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |