| 1 | package JiftyX::Fixtures::Script::Help; | ||
| 2 | our $VERSION = '0.07'; | ||
| 3 | |||
| 4 | # ABSTRACT: help subcommands | ||
| 5 | |||
| 6 | use warnings; | ||
| 7 | use strict; | ||
| 8 | |||
| 9 | use base qw( | ||
| 10 | App::CLI::Command::Help | ||
| 11 | ); | ||
| 12 | |||
| 13 | sub run { | ||
| 14 | my $self = shift; | ||
| 15 | |||
| 16 | if ($self->{config}->{fixtures}) { | ||
| 17 | $self->SUPER(@_); | ||
| 18 | } else { | ||
| 19 | print $self->{config}->{app_root} . " is not existed. Please run `jiftyx-fixtures init`\n"; | ||
| 20 | } | ||
| 21 | |||
| 22 | } | ||
| 23 | |||
| 24 | |||
| 25 | |||
| 26 | 1; | ||
| 27 | |||
| 28 | __END__ |