From: Tomas Doran Date: Wed, 4 Nov 2009 09:37:31 +0000 (+0000) Subject: Regenerate README X-Git-Tag: 0.04~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b80dd215627f33bf1b2048f4adcfb94a10338a0d;p=gitmo%2FMooseX-SimpleConfig.git Regenerate README --- diff --git a/README b/README index 09c3cb8..f13e2ed 100644 --- a/README +++ b/README @@ -7,46 +7,46 @@ SYNOPSIS foo: bar baz: 123 - ## In your class + ## In your class package My::App; use Moose; - - with 'MooseX::SimpleConfig'; - - has 'foo' => (is => 'ro', isa => 'Str', required => 1); + + with 'MooseX::SimpleConfig'; + + has 'foo' => (is => 'ro', isa => 'Str', required => 1); has 'baz' => (is => 'rw', isa => 'Int', required => 1); - - # ... rest of the class here - - ## in your script + + # ... rest of the class here + + ## in your script #!/usr/bin/perl - - use My::App; - - my $app = My::App->new_with_config(configfile => '/etc/my_app.yaml'); + + use My::App; + + my $app = My::App->new_with_config(configfile => '/etc/my_app.yaml'); # ... rest of the script here #################### ###### combined with MooseX::Getopt: - ## In your class + ## In your class package My::App; use Moose; - - with 'MooseX::SimpleConfig'; + + with 'MooseX::SimpleConfig'; with 'MooseX::Getopt'; - - has 'foo' => (is => 'ro', isa => 'Str', required => 1); + + has 'foo' => (is => 'ro', isa => 'Str', required => 1); has 'baz' => (is => 'rw', isa => 'Int', required => 1); - - # ... rest of the class here - - ## in your script + + # ... rest of the class here + + ## in your script #!/usr/bin/perl - - use My::App; - - my $app = My::App->new_with_options(); + + use My::App; + + my $app = My::App->new_with_options(); # ... rest of the script here ## on the command line