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 via pip:

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

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 --debug 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

r2c_cli-0.0.6-py3.7.egg (21.9 kB view details)

Uploaded Source

r2c_cli-0.0.6-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file r2c_cli-0.0.6-py3.7.egg.

File metadata

  • Download URL: r2c_cli-0.0.6-py3.7.egg
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.2 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for r2c_cli-0.0.6-py3.7.egg
Algorithm Hash digest
SHA256 664790b93dc680f42e89ff9e024f98b1b9e0f8e5712b1ba628ed99d759385f97
MD5 c00260d8823a1edaf2211b6be8ab0fb6
BLAKE2b-256 6cf5ad4f6756bd8322e3a4694619d76c377cfd1e0ed4df2e0c67b472be112bcb

See more details on using hashes here.

File details

Details for the file r2c_cli-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: r2c_cli-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.2 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for r2c_cli-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6f592b4c000f0cb7dd878d70c6158716ebd5d9e845c43c27bda7e4e3190377af
MD5 bb25e885274c493904f86bffb1a82e31
BLAKE2b-256 9615098cc5409274b8446a144a36c18bdd70da0959dee9782cfce8a2830342d0

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