App-Software-License
view release on metacpan or search on metacpan
lib/App/Software/License.pm view on Meta::CPAN
package App::Software::License; # git description: v0.10-4-g9e7e1ff
# ABSTRACT: Command-line interface to Software::License
# KEYWORDS: license licence LICENSE generate distribution build tool
our $VERSION = '0.11';
use Moo 1.001000;
use MooX::Options;
use File::HomeDir;
use File::Spec::Functions qw/catfile/;
use Module::Runtime qw/use_module/;
use Software::License;
use Config::Any;
use namespace::autoclean 0.16 -except => [qw/_options_data _options_config/];
#pod =head1 SYNOPSIS
#pod
#pod software-license --holder 'J. Random Hacker' --license Perl_5 --type notice
#pod
#pod =head1 DESCRIPTION
#pod
#pod This module provides a command-line interface to Software::License. It can be
#pod used to easily produce license notices to be included in other documents.
#pod
#pod All the attributes documented below are available as command-line options
#pod through L<MooX::Options> and can also be configured in
#pod F<$HOME/.software_license.conf> through L<Config::Any>.
#pod
#pod =cut
#pod =attr holder
#pod
#pod Name of the license holder.
#pod
#pod =cut
option holder => (
is => 'ro',
required => 1,
format => 's',
doc => '',
);
#pod =attr year
#pod
#pod Year to be used in the copyright notice.
#pod
#pod =cut
option year => (
is => 'ro',
format => 'i',
doc => '',
);
#pod =attr license
#pod
#pod Name of the license to use. Must be the name of a module available under the
#pod Software::License:: namespace. Defaults to Perl_5.
#pod
#pod =cut
option license => (
is => 'ro',
default => 'Perl_5',
format => 's',
doc => '',
);
#pod =attr type
#pod
#pod The type of license notice you'd like to generate. Available values are:
#pod
#pod B<* notice>
( run in 0.555 second using v1.01-cache-2.11-cpan-39bf76dae61 )