app-sharedir.pl - a CLI::Driver example using File::ShareDir
Quickstart: - cd to your project dir (typically where the Makefile.PL lives) - create bin/ dir - copy this to bin/<yournewcliname.pl> - create 'share/' dir - create 'share/cli-driver.yml' file (you can use the cli-driver.yml example included with this distro) - find the TODO(s) in this file and update those section(s) appropriately
- Dist::Zilla users: - add [ExecDir] to your dist.ini (assuming you want to bundle your new cli) - add [ShareDir] to your dist.ini - ExtUtils::MakeMaker users: - add EXE_FILES => ['bin/yournewcliname.pl'] to your Makefile.PL - refer to File::ShareDir docs for remaining config
To install CLI::Driver, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CLI::Driver
CPAN shell
perl -MCPAN -e shell install CLI::Driver
For more information on module installation, please visit the detailed CPAN module installation guide.