Command line code search engine.
Switch branches/tags
Clone or download
Pull request Compare This branch is 46 commits behind jeteve:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib/App
t
.gitignore
.travis.yml
README.md
cpanfile
dist.ini

README.md

NAME

App::CSE - Code search engine. Implements the 'cse' program

INSTALLATION

Using system wide cpan:

sudo cpan -i App::CSE

Using cpanm:

cpanm App::CSE

SYNOPSIS

cse

See App::CSE::Command::Help For a description the available commands.

PROGRAMMATIC USAGE

In addition of using this via the command line program 'cse', you can use this app in an object oriented way.

For instance:

my $app = App::CSE->new( { command\_name => 'index',
                           options => { 'idx' => '/path/to/the/index' ,
                                         'dir' => '/code/directory/to/index'
                                      });

if( $app->execute() ){
    .. and error occured ..
}else{
    .. It is a success ..
}

Retrieving search hits after a search:

 my $app = App::CSE->new( { command\_name => 'search',
                            args => [ 'search\_query' ],
                            options => { 'idx' => '/path/to/the/index' ,
                                          'dir' => '/code/directory/to/index'
                                       });
my $hits = $app->command()->hits();
# This is a L<Lucy::Search::Hits>

See App::CSE::Command::Help for a list of available commands and options.

LOGGING

App::CSE uses Log::Log4perl

BUILD STATUS

COPYRIGHT

See App::CSE::Command::Help