App-revealup
view release on metacpan or search on metacpan
lib/App/revealup/cli.pm view on Meta::CPAN
# For compatibility.
has 'command_map' => {
server => 'serve',
theme => 'export',
};
sub run {
my ($self, @args) = @_;
local @ARGV = @args;
my @commands;
push @commands, @ARGV;
my $command = shift @commands;
if($command) {
my $new_command = $self->command_map->{$command};
$command = $new_command if $new_command;
my $klass = sprintf("App::revealup::cli::%s", lc($command));
no warnings 'ambiguous';
if(eval "require $klass;1;"){
( run in 0.448 second using v1.01-cache-2.11-cpan-49f99fa48dc )