Git::DescribeVersion::App - Run Git::DescribeVersion as one-line script
version 1.015
Print out the version from Git::DescribeVersion in one line:
perl -MGit::DescribeVersion::App -e run
Options can be passed as program arguments (@ARGV):
@ARGV
perl -MGit::DescribeVersion::App -e run --match-pattern "rev-*"
The @ARGV form allows arguments to be spelled with dashes instead of underscores.
Options can also be passed in a hash or hashref just like "new" in Git::DescribeVersion:
perl -MGit::DescribeVersion::App -e 'run(match_pattern => "rev-*")'
Or can be environment variables spelled like GIT_DV_OPTION:
export GIT_DV_MATCH_PATTERN="rev-*" perl -MGit::DescribeVersion::App -e run
This (hopefully) makes it easy for you to write the alias, function, Makefile or script that does exactly what you want.
If not, feel free to send me suggestions (or patches) that you think would make it simpler or more powerful.
Convenience method for writing one-liners.
Exported to main package.
Accepts arguments in a hash or hashref which are passed to the constructor.
Also looks for arguments in %ENV and @ARGV.
See "SYNOPSIS".
Git::DescribeVersion
Randy Stauner <rwstauner@cpan.org>
This software is copyright (c) 2010 by Randy Stauner.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Git::DescribeVersion, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::DescribeVersion
CPAN shell
perl -MCPAN -e shell install Git::DescribeVersion
For more information on module installation, please visit the detailed CPAN module installation guide.