NAME

Bash::Completion::Request - Abstract a completion request

VERSION

version 0.003

ATTRIBUTES

line

The full command line as given to us by bash.

word

The word to be completed.

args

The command line, up to and including the word to be completed, as a list of terms.

The split of the command line into terms is very very basic. There might be dragons here.

count

Number of words in the command line before the completion point.

point

The index in the command line where the shell cursor is.

METHODS

new

Constructs a completion request object based on the bash environment variables: COMP_LINE and COMP_POINT.

candidates

Accepts a list of completion candidates and passes them on to the shell.

AUTHOR

Pedro Melo <melo@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2010 by Pedro Melo.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)