MooseX::App::Message::Envelope - Message presented to the user
Whenever MooseX::App needs to pass a message to the user, it does so by generating a MooseX::App::Message::Envelope object. The object usually contains one or more blocks (MooseX::App::Message::Block) and can be easily stringified.
Usually a MooseX::App::Message::Envelope object is generated and returned by the new_with_command method in MooseX::App::Base if there is an error or if the user requests help.
To avoid useless object type checks when working with this method, MooseX::App::Message::Envelope follows the Null-class pattern. So you can do this:
MyApp->new_with_command->some_method->only_called_if_successful;
Stringifies the messages
Adds a new message block. Param must be a MooseX::App::Message::Block
Returns a list on message blocks.
Message block accessor.
Stringification of this object is overloaded.
You can call any method on the message class.
To install MooseX::App, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::App
CPAN shell
perl -MCPAN -e shell install MooseX::App
For more information on module installation, please visit the detailed CPAN module installation guide.