]>
iEval git - gruntmaster-data.git/blob - lib/Gruntmaster/App/Command.pm
1 package Gruntmaster
::App
::Command
;
7 our $VERSION = '5999.000_004';
9 use parent qw
/App::Cmd::Command/;
14 my ($file) = (ref $self) =~ s
,::,/,gr
;
16 open my $fh, '>', \
$usage;
17 pod2usage
(-input
=> $INC{"$file.pm"}, -output
=> $fh, -exitval
=> 'NOEXIT', -verbose
=> 99, -sections
=> [qw
/SYNOPSIS DESCRIPTION/]);
19 $usage =~ s/Usage:/Usage examples:/;
31 Gruntmaster::App::Command - Base class for gm commands
35 package Gruntmaster::App::Command::foo;
36 use Gruntmaster::App '-command';
40 Gruntmaster::App::Command is the base class of all gm commands. Its
41 only role is to extract a command's documentation from its POD by
42 overriding the description method to use L<Pod::Usage>.
46 L<Gruntmaster::App>, L<gm>
50 Marius Gavrilescu, E<lt>marius@ieval.roE<gt>
52 =head1 COPYRIGHT AND LICENSE
54 Copyright (C) 2015 by Marius Gavrilescu
56 This library is free software; you can redistribute it and/or modify
57 it under the same terms as Perl itself, either Perl version 5.20.1 or,
58 at your option, any later version of Perl 5 you may have available.
This page took 0.04867 seconds and 5 git commands to generate.