Catalyst::ScriptRole - Common functionality for Catalyst scripts.
Contents
Attributes
application_name
The name of the application class, e.g. MyApp
Copyright
This library is free software, you can redistribute it and/or modify it under the same terms as Perl
itself.
perl v5.40.0 2024-11-15 Catalyst::ScriptRole(3pm)
Description
Role with the common functionality of Catalyst scripts.
Methods
run
The method invoked to run the application.
print_usage_text
Prints out the usage text for the script you tried to invoke.
Name
Catalyst::ScriptRole - Common functionality for Catalyst scripts.
See Also
Catalyst
MooseX::Getopt
Synopsis
package MyApp::Script::Foo;
use Moose;
use namespace::autoclean;
with 'Catalyst::ScriptRole';
sub _application_args { ... }
