File: Yell.pm

package info (click to toggle)
libcli-osprey-perl 0.08-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 200 kB
  • sloc: perl: 843; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 316 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package MyTest::Class::Basic::Yell;

use Moo;
use CLI::Osprey;

option excitement_level => (
    is => 'ro',
    format => 'i',
    doc => 'Level of excitement for yelling',
    default => 0,
);

sub run {
    my ($self) = @_;
    print uc $self->parent_command->message, "!" x $self->excitement_level, "\n";
}


1;