Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dpb587/opengrok-cli
Command line interface for getting results from an OpenGrok server.
https://github.com/dpb587/opengrok-cli
Last synced: 2 months ago
JSON representation
Command line interface for getting results from an OpenGrok server.
- Host: GitHub
- URL: https://github.com/dpb587/opengrok-cli
- Owner: dpb587
- License: mit
- Created: 2012-10-22T01:01:47.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-12-04T06:24:57.000Z (about 9 years ago)
- Last Synced: 2024-04-15T14:20:50.631Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 9
- Watchers: 5
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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/
$ curl -sS https://getcomposer.org/installer | php # If you don't already have Composer
$ composer.phar installUsage
-----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](http://us.php.net/manual/en/book.phar.php), 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)