Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

r2c-cli

This is the CLI for interacting with the R2C platform.

Installation

Prerequisites

Setup

  • Install r2c-cli via pip:

    pip3 install r2c-cli
    
  • Run r2c to check that the CLI was installed properly. If installed properly, you should see our help text.

Documentation

See docs.r2c.dev for details on how write analyzer using r2c-cli.

Usage

r2c <command> [options]

You can also run r2c --help or just r2c to see usage information.

For help with a command in particular, you can run r2c <command> --help and see help specifically for that command.

For the commands run test push and unittest they will require that you run them in an analyzer directory (i.e. a directory containing an analyzer.json and associated files).

Unit Testing

Instructions to run unittests are defined src/unittest.sh. Make sure to add mocha test or npm test to enable unittesting for your analyzer.

Integration Testing

Integration tests should be defined in the src/examples directory. Integration test on a github REPO@COMMIT could be defined as

{
  "target": "{REPO}",
  "target_hash": "{COMMIT}",
  "expected": []
}

Uploading new analyzer

Once you are done developing and testing your analyzer locally, you must update version in your analyzer.json and run

r2c push

to upload your analyzer to your repository.

Troubleshooting

  • If you run into issues running r2c commands, you can run with --verbose flag and reach out to support@ret2.co with the error log.

Release files for r2c-cli 0.0.21a1

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

Built distribution (wheel)

Table of built distributions (wheels) for r2c-cli 0.0.21a1
File Interpreter ABI Platform
r2c_cli-0.0.21a1-py3-none-any.whl Python 3 none any Details

Release files / r2c_cli-0.0.21a1-py3-none-any.whl

Download URL r2c_cli-0.0.21a1-py3-none-any.whl
Size 26.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
924e37b74797566b778409ea8056cde832d279e473facf93dde7b3f43ef874bf
BLAKE2b-256 checksum
How to use checksums
62dc3e2bb5b05506e08a51a985435fe937bd94aa43ab495d85bb4cd5252f4c74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2
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