Datahub::Factory::Flash - Pretty verbose flash messages
Output pretty verbose messages on the command line interface.
The verbose flag is a boolean used to enables or disable the output fo messages. Messages will be outputed by default to STDOUT. This module currently supports three types of messages info, error and success. The ouput is styled using Term::ANSIColor.
verbose
info
error
success
This package is a Moo::Role.
For example, consider this module:
package Datahub::Factory::Foo; use Moo; with 'Datahub::Factory::Flash'; sub messaging { $self->{verbose} = 1; $self->info("An info message"); $self->error("An error message"); $self->success("A success message"); }
Matthias Vandermaesen <matthias.vandermaesen@vlaamsekunstcollectie.be>
Copyright 2016 - PACKED vzw, Vlaamse Kunstcollectie vzw
This library is free software; you can redistribute it and/or modify it under the terms of the GPLv3.
To install Datahub::Factory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Datahub::Factory
CPAN shell
perl -MCPAN -e shell install Datahub::Factory
For more information on module installation, please visit the detailed CPAN module installation guide.