Skip to main content

Command-line tool for querying DXR.

Project description

A small command-line tool for searching DXR.

https://osmose.github.io/dxr-cmd/dxr-cmd.gif

Install

DXR-cmd is written in Python and can be installed using pip, which comes included with most recent versions of Python:

pip install dxr-cmd

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

  1. Use a virtualenv!

  2. 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.2.0.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file dxr-cmd-0.2.0.tar.gz.

File metadata

  • Download URL: dxr-cmd-0.2.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dxr-cmd-0.2.0.tar.gz
Algorithm Hash digest
SHA256 45a1cdb8fba6b0dafba65e5c884d3e41af8ff24c3ace5054d90c9c348cd4bf4d
MD5 9d35c423c47c9a4fda8de40dcf6b1345
BLAKE2b-256 55331dd89bba22bca144ff8af5df6cf00a1d3e8fae5ecbf4ac88ef6cad4f4d8d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page