The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Mojolicious::Commands - Commands

SYNOPSIS

    use Mojo::Commands;

    my $commands = Mojolicious::Commands->new;
    $commands->run(@ARGV);

DESCRIPTION

Mojolicous::Commands is a interactive command interface.

ATTRIBUTES

Mojolicious::Commands inherits all attributes from Mojo::Commands and implements the following new ones.

namespaces

    my $namespaces = $commands->namespaces;
    $commands      = $commands->namespaces(['Mojolicious::Commands']);

Namespaces to run commands from, defaults to Mojo::Command and Mojolicious::Command. Your application might add to this in order to implement local actions.

    push @{$commands->namespaces}, 'MyApp::Command';

METHODS

Mojolicious::Commands inherits all methods from Mojo::Commands.

SEE ALSO

Mojolicious, Mojolicious::Book, http://mojolicious.org.