| 1 | package Boxer::CLI::Command::Commands; | ||
| 2 | |||
| 3 | =encoding UTF-8 | ||
| 4 | |||
| 5 | =cut | ||
| 6 | |||
| 7 | 3 | ▶ | use v5.20; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 3 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 3 | ▶ | use Role::Commons -all; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 3 | ▶ | use feature 'signatures'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 3 | ▶ | use namespace::autoclean 0.16; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 3 | ▶ | use Boxer::CLI -command; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 3 | ▶ | use strictures 2; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 3 | ▶ | no warnings "experimental::signatures"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | =head1 VERSION | ||
| 19 | |||
| 20 | Version v1.4.2 | ||
| 21 | |||
| 22 | =cut | ||
| 23 | |||
| 24 | 3 | our $VERSION = "v1.4.2"; | |
| 25 | |||
| 26 | 3 | require App::Cmd::Command::commands; | |
| 27 | 3 | our @ISA; | |
| 28 | 3 | unshift @ISA, 'App::Cmd::Command::commands'; | |
| 29 | |||
| 30 | use constant { | ||
| 31 | 3 | abstract => q[list installed boxer commands], | |
| 32 | 3 | ▶ | }; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 33 | |||
| 34 | sub sort_commands ( $self, @commands ) | ||
| 35 | ▶ | { | |
|
Subroutine
sort_commands: called CC=1 SCAR=0.0
Pod
documented
| |||
| 36 | 1 | my $float = qr/^(?:help|commands|aliases|about)$/; | |
| 37 | 1 | my @head = sort grep { $_ =~ $float } @commands; | |
| 38 | 1 | my @tail = sort grep { $_ !~ $float } @commands; | |
| 39 | 1 | return ( \@head, \@tail ); | |
| 40 | } | ||
| 41 | |||
| 42 | =head1 AUTHOR | ||
| 43 | |||
| 44 | Jonas Smedegaard C<< <dr@jones.dk> >>. | ||
| 45 | |||
| 46 | =cut | ||
| 47 | |||
| 48 | 3 | our $AUTHORITY = 'cpan:JONASS'; | |
| 49 | |||
| 50 | =head1 COPYRIGHT AND LICENCE | ||
| 51 | |||
| 52 | Copyright © 2013-2016 Jonas Smedegaard | ||
| 53 | |||
| 54 | This is free software; you can redistribute it and/or modify it under | ||
| 55 | the same terms as the Perl 5 programming language system itself. | ||
| 56 | |||
| 57 | =head1 DISCLAIMER OF WARRANTIES | ||
| 58 | |||
| 59 | THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED | ||
| 60 | WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF | ||
| 61 | MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
| 62 | |||
| 63 | =cut | ||
| 64 | |||
| 65 | 3 | 1; | |