App-Spec-Bash
view release on metacpan or search on metacpan
lib/App/Spec/Bash.pm view on Meta::CPAN
say "Creating $dir/share/$name.yaml ...";
open my $fh, '>', "$dir/share/$name.yaml" or die $!;
print $fh $spec;
close $fh;
say "Creating $dir/bin/$name ...";
open $fh, '>', "$dir/bin/$name" or die $!;
print $fh $script;
close $fh;
chmod 0755, "$dir/bin/$name" or die $!;
say "Creating $dir/lib/$name ...";
open $fh, '>', "$dir/lib/$name" or die $!;
print $fh $module;
close $fh;
say <<"EOM";
Created skeleton in $dir.
To generate the parser and help, do:
( run in 0.381 second using v1.01-cache-2.11-cpan-496ff517765 )