Mojolicious::Command::Author::generate::role - Role generator command
version 0.002
Usage: APPLICATION generate role [OPTIONS] [[CONSUMER_CLASS] NAME] mojo generate role mojo generate role MyRole mojo generate role Mojo::Whatever MyRole mojo generate role Mojo::Whatever::Role::MyRole mojo generate role -f Mojo::Whatever MyRole Options: -f, --full NAME is the full role name (omit 'CONSUMER_CLASS::Role::') -h, --help Show this summary of available options
Mojolicious::Command::Author::generate::role generates directory structures for fully functional roles to use with Mojolicious objects/classes.
If the intended consumer class is not specified it will be inferred from the role name given (whatever precedes ::Role:: in the name) or otherwise default to Mojo::Base.
::Role::
Mojolicious::Command::Author::generate::role inherits all attributes from Mojolicious::Command and implements the following new ones:
my $description = $role_cmd->description; $role_cmd = $role_cmd->description('Foo');
Short description of this command, used for the command list.
my $usage = $role_cmd->usage; $role_cmd = $role_cmd->usage('Foo');
Usage information for this command, used for the help screen.
Mojolicious::Command::Author::generate::role inherits all methods from Mojolicious::Command and implements the following new ones.
$role_cmd->run(@ARGV);
Run this command.
Copyright (C) 2019, Roger Crew.
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.
Mojolicious, Mojolicious::Guides, https://mojolicious.org.
To install Mojolicious::Command::Author::generate::role, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Command::Author::generate::role
CPAN shell
perl -MCPAN -e shell install Mojolicious::Command::Author::generate::role
For more information on module installation, please visit the detailed CPAN module installation guide.