App::Multigit::Script - Common behaviour for scripts
If you use App::Multigit::Script, some things are taken care of for you, and some things can be done on request.
The default behaviour is to
--workdir
mg
--help
STDIN
Not your common or garden import. This does the aforementioned things, and exports a %options into your script's namespace (i.e. main).
%options
main
Returns a hash containing the standard options for all mg scripts.
If STDIN is connected to a pipe or something, this slurps it and uses it as the list of selected repos. See @SELECTED_REPOS in App::Multigit.
Alastair McGowan-Douglas, <altreus at perl.org>
<altreus at perl.org>
Please report bugs on the github repository https://github.com/Altreus/App-Multigit.
Copyright 2015 Alastair McGowan-Douglas.
This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). You may obtain a copy of the full license at:
http://www.perlfoundation.org/artistic_license_2_0
To install App::Multigit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Multigit
CPAN shell
perl -MCPAN -e shell install App::Multigit
For more information on module installation, please visit the detailed CPAN module installation guide.