Skip to main content

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.

Metadata

Release files for dxr-cmd 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dxr-cmd 0.2.2
File Size Uploaded Provenance Actions
dxr-cmd-0.2.2.tar.gz 3.5 kB Without provenance Details for dxr-cmd-0.2.2.tar.gz

Release files / dxr-cmd-0.2.2.tar.gz

Download URL dxr-cmd-0.2.2.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a79161a58fa2b8c5ae3db53819bcb005d0bad63b29af4ea1026b3793c2232289
BLAKE2b-256 checksum
How to use checksums
12ea3a72e663ca47099a1900475b2a2171990cfee086506f7914f68e6ed333b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for dxr-cmd 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page