Skip to main content

A CLI for R2C

Project description

r2c-cli

This is the CLI for interacting with the R2C platform. More documentation on the way!

Installation (wip)

Prerequisites

Setup

  • Download the r2c-lib and r2c-cli .whl files.

  • Install the wheel files using pip3 (change the filenames to match):

    pip3 install r2c_lib.whl r2c_cli.whl
    

    Since the wheels aren't publicly available on PyPI yet, you must provide both wheels to pip3, or else it won't be able to resolve dependencies properly.

  • Run r2c to check that the CLI was installed properly. You should see usage info.

Usage

r2c <command> [options]

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

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

Many commands require that you run them in an analyzer directory (i.e. a directory containing an analyzer.json and associated files).

Testing

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

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

Troubleshooting

  • If you run into issues and need to reinstall the CLI, you can run:

    pip3 install --upgrade --force-reinstall r2c_lib.whl r2c_cli.whl
    
  • If you receive a message stating that the .whl "is not supported wheel on this platform", make sure that the filename hasn't been altered. PIP determines platform compatibility based on the filename, so if you downloaded it twice and your browser added a "(1)" it will think it doesn't work on your platform.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for r2c-cli, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size r2c_cli-0.0.3-py3.7.egg (20.2 kB) File type Egg Python version 3.7 Upload date Hashes View
Filename, size r2c_cli-0.0.3-py3-none-any.whl (10.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size r2c-cli-0.0.3.tar.gz (9.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page