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.

Source Distribution

r2c-cli-0.0.3.tar.gz (9.6 kB view hashes)

Uploaded Source

Built Distributions

r2c_cli-0.0.3-py3.7.egg (20.2 kB view hashes)

Uploaded Source

r2c_cli-0.0.3-py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 3

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