Command-line tool for querying DXR.
Project description
A small command-line tool for searching DXR.
Install
DXR-cmd is written in Python and can be installed using pip, which comes included with most recent versions of Python:
pip install git+https://github.com/Osmose/dxr-cmd.git
Usage
Adds a command called dxr:
Run a search against DXR. Usage: dxr [options] <query>... Options: --case-insensitive Perform a case-insensitive search (searches are case-sensitive by default). -h --help Show this screen. --limit=LIMIT Maximum number of matches [default: 50] --no-highlight Disable syntax highlighting. --pager=PROGRAM Direct output through PROGRAM. --server=DOMAIN DXR instance to send the search request to. [default: https://dxr.mozilla.org] --style=STYLE Name of Pygments style for syntax highlighting. [default: paraiso-dark] --tree=TREE Code tree to search against. [default: mozilla-central] -v --version Show program version.
Developer Setup
Use a virtualenv!
Install the package in development mode:
$ ./setup.py develop
License
This software is licensed under the MIT License. For more information, see the LICENSE file.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dxr-cmd-0.1.0.tar.gz
(3.4 kB
view details)
File details
Details for the file dxr-cmd-0.1.0.tar.gz
.
File metadata
- Download URL: dxr-cmd-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bf0a7c9e65536353a96141384b5806f81366b8d10b650d14c827ac97e63b486 |
|
MD5 | 97c0b68d4edd2c55b6dd1594c3307db4 |
|
BLAKE2b-256 | b06608f644f4dca8e4855ba68af958fd3fdea78f980a1e6f2956197fdc96a9d3 |