| 1 | #!/usr/bin/env perl | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 2 | # Copyright (C) 2022 Alex Schroeder <alex@gnu.org> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 3 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 4 | # This program is free software: you can redistribute it and/or modify it under | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 5 | # the terms of the GNU Affero General Public License as published by the Free | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 6 | # Software Foundation, either version 3 of the License, or (at your option) any | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 7 | # later version. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 8 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 9 | # This program is distributed in the hope that it will be useful, but WITHOUT | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 10 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | # FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 12 | # details. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 13 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 14 | # You should have received a copy of the GNU Affero General Public License along | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 15 | # with this program. If not, see <http://www.gnu.org/licenses/>. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 17 | =head1 NAME | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 19 | character-sheet-generator - a web app to generate character sheets | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 21 | =head1 SYNOPSIS | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 23 | character-sheet-generator daemon --listen "http://*:3040" | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 24 | character-sheet-generator random | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 26 | =head1 DESCRIPTION | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 28 | B<daemon>: This command starts a web server using Mojolicious. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 29 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 30 | B<random>: This command prints a random character to standard output. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 31 | See L<Game::CharacterSheetGenerator::Command::Random> for options. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 33 | =head1 SEE ALSO | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 34 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 35 | For more information, see L<Game::CharacterSheetGenerator>. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 37 | =head1 LICENSE | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 39 | GNU Affero General Public License | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 40 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 41 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 42 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| 43 | 1 | ▶ | use FindBin; | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| 44 | 1 | ▶ | use lib "$FindBin::Bin/../lib"; | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| 45 | 1 | ▶ | my $res = require Game::CharacterSheetGenerator | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition20%2/10
(my $res = require Game::CharacterSheetGenerator) || !defined($res) && die("Cannot load Game::CharacterSheetGenerator: $!") || ($res || die("Game::CharacterSheetGenerator did not return a true value\n"))
my $res = require Game::CharacterSheetGenerator or not defined $res and die "Cannot load Game::CharacterSheetGenerator: $!"
not defined $res and die "Cannot load Game::CharacterSheetGenerator: $!"
$res or die "Game::CharacterSheetGenerator did not return a true value\n"
MC/DC0%0/3
(my $res = require Game::CharacterSheetGenerator) || !defined($res) && die("Cannot load Game::CharacterSheetGenerator: $!") || ($res || die("Game::CharacterSheetGenerator did not return a true value\n"))
my $res = require Game::CharacterSheetGenerator
not defined $res
$res
Truth table0%0/4
A or not(B) || C
A= my $res = require Game::CharacterSheetGeneratorB= not defined $resC= $res
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| 46 | or not defined $res and die "Cannot load Game::CharacterSheetGenerator: $!" | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 47 | or not $res and die "Game::CharacterSheetGenerator did not return a true value\n"; | ||||||||||||||||||||||||||||||||||||||||||||||||||