Skip to main content

A CLI for R2C

Project description

r2c-cli

This is the CLI for interacting with the R2C platform.

Installation

Prerequisites

Setup

  • Install r2c-cli, either via pip or via pipx to provide better package isolation.

    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.

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

r2c-cli-0.0.24b3.tar.gz (25.0 kB view details)

Uploaded Source

Built Distribution

r2c_cli-0.0.24b3-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

Details for the file r2c-cli-0.0.24b3.tar.gz.

File metadata

  • Download URL: r2c-cli-0.0.24b3.tar.gz
  • Upload date:
  • Size: 25.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0b5 CPython/3.7.7 Darwin/19.4.0

File hashes

Hashes for r2c-cli-0.0.24b3.tar.gz
Algorithm Hash digest
SHA256 4e13fc6d37c8ac33415d3262177a3c0dc3ca876a17156155cb907c2a10211305
MD5 30f2d44466cd504463edfb92b6d8076c
BLAKE2b-256 39deca86fd5dcbd34a945370c27ee9c61cadb232bac85f3ac56a604733e5a1d1

See more details on using hashes here.

File details

Details for the file r2c_cli-0.0.24b3-py3-none-any.whl.

File metadata

  • Download URL: r2c_cli-0.0.24b3-py3-none-any.whl
  • Upload date:
  • Size: 31.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0b5 CPython/3.7.7 Darwin/19.4.0

File hashes

Hashes for r2c_cli-0.0.24b3-py3-none-any.whl
Algorithm Hash digest
SHA256 0f09e6ae4519fb095a6d645146dcab6309f0670d9e12fc95f34332dd34ec9552
MD5 3d92ff439305384c2e3b8ba2ebbc6ebf
BLAKE2b-256 a90bcd23d7ad6882ce676ef2abae1fadb2291315ab9eaa61f14b7b1f36d6f0e8

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