|
Revision 18806, 444 bytes
(checked in by lopnor, 5 years ago)
|
|
lang/perl/App-Hachero: first import
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/usr/bin/perl |
|---|
| 2 | use strict; |
|---|
| 3 | use warnings; |
|---|
| 4 | use FindBin; |
|---|
| 5 | use File::Spec::Functions; |
|---|
| 6 | use lib catfile($FindBin::Bin, 'lib'); |
|---|
| 7 | use App::Hachero; |
|---|
| 8 | use Getopt::Long; |
|---|
| 9 | |
|---|
| 10 | my $confname = 'config.yaml'; |
|---|
| 11 | my $version = 0; |
|---|
| 12 | GetOptions( |
|---|
| 13 | 'config=s' => \$confname, |
|---|
| 14 | 'version' => \$version, |
|---|
| 15 | ) or die "Usage: $0 -c config.yaml"; |
|---|
| 16 | |
|---|
| 17 | if ($version) { |
|---|
| 18 | print "App::Hachero/$App::Hachero::VERSION\n"; |
|---|
| 19 | exit; |
|---|
| 20 | } |
|---|
| 21 | |
|---|
| 22 | App::Hachero->new({config => $confname})->run; |
|---|
| 23 | |
|---|