NAME
Mojolicious::Command::badge - Badge command
SYNOPSIS
Usage: APPLICATION badge [OPTIONS]
./myapp.pl badge --label "Hello" --message "Mojo!" --color "orange" \
--format png --file my-cool-badge.png
Options:
--label <string> The text that should appear on the left-hand-side
of the badge
--message <string> The text that should appear on the right-hand-side
of the badge
--color <string> Message color
--style <string> Badge style ("flat" [default], "flat-square",
"plastic" or "for-the-badge")
--format <string> Badge format ("svg" [default] or "png")
--title <string> The title attribute to associate with the
entire badge
--label-color <string> Label color
--label-title <string> The title attribute to associate with the left
part of the badge
--label-link <string> The URL that should be redirected to when the
left-hand text is selected
--label-text-color <string> Label text color
--message-title <string> The title attribute to associate with the right
part of the badge
--message-link <string> The URL that should be redirected to when the
right-hand text is selected
--message-text-color <string> Message text color
--link <string> Link for the whole badge (works only for SVG badge)
--logo <string> A file, URL or data (e.g. "data:image/svg+xml;utf8,<svg...")
representing a logo that will be displayed
inside the badge.
--embed-logo Includes logo in badge
--file <path> Write the badge in file
DESCRIPTION
Mojolicious::Command::badge is a utility for create badges.
ATTRIBUTES
Mojolicious::Command::badge inherits all attributes from Mojolicious::Command and implements the following new ones.
description
my $description = $job->description;
$job = $job->description('Foo');
Short description of this command, used for the command list.
usage
my $usage = $job->usage;
$job = $job->usage('Foo');
Usage information for this command, used for the help screen.
METHODS
Mojolicious::Command::badge inherits all methods from Mojolicious::Command and implements the following new ones.
run
$job->run(@ARGV);
Run this command.
SEE ALSO
Mojolicious::Plugin::Badge, Mojolicious::Guides, https://mojolicious.org.