line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Beam::Runner::Command; |
2
|
|
|
|
|
|
|
our $VERSION = '0.016'; |
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
|
|
70503
|
use strict; |
|
1
|
|
|
|
|
11
|
|
|
1
|
|
|
|
|
28
|
|
22
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
29
|
|
23
|
1
|
|
|
1
|
|
449
|
use Module::Runtime qw( use_module compose_module_name ); |
|
1
|
|
|
|
|
1668
|
|
|
1
|
|
|
|
|
5
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub run { |
26
|
1
|
|
|
1
|
0
|
1202
|
my ( $class, $cmd, @args ) = @_; |
27
|
1
|
|
|
|
|
5
|
my $cmd_class = compose_module_name( 'Beam::Runner::Command', $cmd ); |
28
|
1
|
|
|
|
|
142
|
return use_module( $cmd_class )->run( @args ); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |