NAME

Git::Wrapper::Plus::Support::Arguments - Database of command argument support data

VERSION

version 0.004011

METHODS

commands

Returns a list of git commands we have support data for.

for my $cmd ( $arg->commands ) {

}

arguments

Returns a list of argument names we have support data for, with the given command

for my $argument ( $arg->arguments('cat-file') ) {

}

has_command

Determines if a given command is listed in the support data

if ( $arg->has_command('cat-file') ) {

}

has_argument

Determines if a given argument is listed in the support data

if ( $arg->has_argument('cat-file', '-e' ) ) {

}

argument_supports

Determine if a given argument is supported by a given git version

$arg->argument_support( 'cat-file', '-e', $GWP->versions );

ATTRIBUTES

entries

2D Hash of command/argument/ranges

Though you never want to deal with this complex data directly...

cat-file => {
    ::RangeDictionary->new( dictionary => {
            '-e' => RangeSet->new(
                        items => [  Range->new( min => '1.0.0' ) ]
           )
        },
    ),
};

SUPPORTED ARGUMENTS

cat-file

-e

cat-file -e Was added in Git 1.0.0

AUTHOR

Kent Fredric <kentnl@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.com>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.