GithubHelp home page GithubHelp logo

pombredanne / opengrok-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dpb587/opengrok-cli

0.0 0.0 0.0 60 KB

Command line interface for getting results from an OpenGrok server.

License: MIT License

opengrok-cli's Introduction

dpb587/opengrok-cli

Command line interface for getting results from an OpenGrok server.

Setup

$ git clone git://github.com/dpb587/opengrok-cli.git
$ cd opengrok-cli/
$ composer.phar install

Usage

Use --help to see all available options.

$ ./bin/opengrok-cli --server=http://lxr.php.net --project=PHP_5_4 oci_internal_debug
/ext/oci8/oci8.c:777: PHP_FUNCTION(oci_internal_debug);
/ext/oci8/oci8.c:862: 	PHP_FE(oci_internal_debug,			arginfo_oci_internal_debug)
/ext/oci8/oci8.c:932: 	PHP_FALIAS(ociinternaldebug,	oci_internal_debug,		arginfo_oci_internal_debug)
/ext/oci8/oci8_interface.c:1307: /* {{ "{{{" }} proto void oci_internal_debug(int onoff)
/ext/oci8/oci8_interface.c:1309: PHP_FUNCTION(oci_internal_debug)

Additionally, the following environment variables can be used:

  • OPENGROK_SERVER (instead of --server)
  • OPENGROK_PROJECT (instead of --project)

PHAR

To create a PHAR, you'll need to run composer.phar install --dev. Then you may use ./bin/compile which will generate opengrok-cli.phar in the current directory.

If the OPENGROK_SERVER or OPENGROK_PROJECT environment variables are defined, they will be used as defaults in the compiled version. For example:

$ export OPENGROK_SERVER=http://lxr.php.net
$ export OPENGROK_PROJECT=PHP_5_4
$ php -dphar.readonly=0 ./bin/compile
$ unset OPENGROK_SERVER OPENGROK_PROJECT
$ chmod +x opengrok-cli.phar
$ ./opengrok-cli.phar oci_internal_debug
/ext/oci8/oci8.c:777: PHP_FUNCTION(oci_internal_debug);
/ext/oci8/oci8.c:862: 	PHP_FE(oci_internal_debug,			arginfo_oci_internal_debug)
/ext/oci8/oci8.c:932: 	PHP_FALIAS(ociinternaldebug,	oci_internal_debug,		arginfo_oci_internal_debug)
/ext/oci8/oci8_interface.c:1307: /* {{ "{{{" }} proto void oci_internal_debug(int onoff)
/ext/oci8/oci8_interface.c:1309: PHP_FUNCTION(oci_internal_debug)

opengrok-cli's People

Contributors

dpb587 avatar randgalt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.