| 1 | # | ||
| 2 | # This file is part of App-Magpie | ||
| 3 | # | ||
| 4 | # This software is copyright (c) 2011 by Jerome Quelin. | ||
| 5 | # | ||
| 6 | # This is free software; you can redistribute it and/or modify it under | ||
| 7 | # the same terms as the Perl 5 programming language system itself. | ||
| 8 | # | ||
| 9 | 1 | ▶ | use 5.012; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | package App::Magpie::App::Command::sort; | ||
| 14 | # ABSTRACT: sort packages needing a rebuild according to their requires | ||
| 15 | 1 | $App::Magpie::App::Command::sort::VERSION = '2.010'; | |
| 16 | 1 | ▶ | use App::Magpie::App -command; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | |||
| 19 | # -- public methods | ||
| 20 | |||
| 21 | 0 | ▶ | sub description { |
|
Subroutine
description: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 22 | 0 | "This command will sort a list of packages to be rebuilt so that | |
| 23 | dependencies are followed." | ||
| 24 | } | ||
| 25 | |||
| 26 | 0 | ▶ | sub opt_spec { |
|
Subroutine
opt_spec: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 27 | 0 | my $self = shift; | |
| 28 | return ( | ||
| 29 | 0 | [], | |
| 30 | [ 'input|i=s' | ||
| 31 | => "file with list of packages to be sorted (default: STDIN)" | ||
| 32 | => { default => "-" } ], | ||
| 33 | [ 'output|o=s' | ||
| 34 | => "file with list of sorted packages (default: STDOUT)" | ||
| 35 | => { default => "-" } ], | ||
| 36 | [], | ||
| 37 | $self->verbose_options, | ||
| 38 | ); | ||
| 39 | } | ||
| 40 | |||
| 41 | 0 | ▶ | sub execute { |
|
Subroutine
execute: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 42 | 0 | my ($self, $opts, $args) = @_; | |
| 43 | 0 | $self->log_init($opts); | |
| 44 | 0 | require App::Magpie::Action::Sort; | |
| 45 | 0 | App::Magpie::Action::Sort->new->run( $opts ); | |
| 46 | } | ||
| 47 | |||
| 48 | 1 | 1; | |
| 49 | |||
| 50 | __END__ | ||