App-plasm
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/App/plasm.pm view on Meta::CPAN
my $class = "App::plasm::$cmd";
my $main = $class->can('main');
pod2usage({
-message => "no subcommand '$cmd'",
-exitval => 2,
}) unless defined $main;
return $main->(@_);
}
else
{
local @ARGV = @_;
GetOptions(
'help|h' => sub { pod2usage({ -exitval => 0 }) },
'version|v' => sub { print "plasm version @{[ App::plasm->VERSION || 'dev' ]} Wasm.pm @{[ Wasm->VERSION ]}\n"; exit 0 },
) or pod2usage({ -exitval => 2 });
pod2usage({ -exitval => 2 });
}
}
package App::plasm::run;
use Pod::Usage qw( pod2usage );
use Getopt::Long qw( GetOptions );
use Wasm 0.08;
use Wasm::Hook;
my $sandbox;
sub main
{
local @ARGV = @_;
Getopt::Long::Configure('require_order');
my @pod = (-verbose => 99, -sections => "SUBCOMMANDS/run");
GetOptions(
'help|h' => sub { pod2usage({ -exitval => 0, @pod }) },
) or pod2usage({ -exitval => 2, @pod });
my $filename = shift @ARGV;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.994 second using v1.00-cache-2.02-grep-82fe00e-cpan-da92000dfeb )