File: MyApp.pm

package info (click to toggle)
libmoosex-runnable-perl 0.10-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 396 kB
  • sloc: perl: 1,034; sh: 6; makefile: 5
file content (20 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package MyApp;
use Moose;
use 5.010;

with 'MooseX::Runnable', 'MooseX::Getopt';

has 'name' => ( is => 'ro', isa => 'Str', default => 'world', documentation =>
                  'Your name, defaults to "world"' );

sub run {
    my ($self, $name) = @_;
    say 'Hello, '. $self->name. '.';
    return 0;
}

1;

__END__

cd to this dir, and then run "mx-run MyApp --help"