aboutsummaryrefslogtreecommitdiff
path: root/lib/Sietima/CmdLine.pm
blob: 57d796f7bd577254fc3bde1ed7dcd5d9575c8934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package Sietima::CmdLine; 
use Moo;
use Sietima::Policy;
use App::Spec;
use Sietima::Runner;
 
has sietima => (
    is => 'ro',
    required => 1,
);
 
sub run($self) {
    my $spec_data = $self->sietima->command_line_spec();
 
    my $app_spec = App::Spec->read($spec_data);
 
    my $runner = Sietima::Runner->new({
        spec => $app_spec,
        cmd => $self->sietima,
    });
 
    $runner->run;
}
 
1;