Skip to content

habbud/forksearch

Repository files navigation

forksearch

> python main.py -h
usage: main.py [-h] [--token TOKEN] [--host HOST] [--port PORT] [--username USERNAME] [--password PASSWORD] [-f FILE] [-r REPO] [-q] [-y] [-t]

ForkSearch CLI

options:
  -h, --help            show this help message and exit
  --token TOKEN         Github token (Default token with environment variable GH_TOKEN)
  --host HOST           Neo4j host
  --port PORT           Neo4j port
  --username USERNAME   Neo4j username
  --password PASSWORD   Neo4j password
  -f FILE, --file FILE  file containing list of owner/repo
  -r REPO, --repo REPO  owner/repo (Default: dbrumley/forksearch)
  -q, --quiet           Not printing repo information
  -y, --yes             Yes to all confirmation
  -t, --trace           Trace back to the parent repository

Usage

  1. cd into project directory.

  2. Create a virtual environment.

$ make venv
  1. Activate it.
$ source venv/bin/activate
  1. Install development dependencies with editable mode to test the CLI.
$ make install

Take forksearch for a spin

First, you need to create a Github access token. You'll need repo and email permissions.

Then,

$ export GH_TOKEN=<GH_TOKEN>
$ cd forksearch
$ python main.py dbrumley/calculator

NOTE: Installation isn't working. To be fixed :)

Test with Docker

CLI commands can be tested with Docker.

  1. Build an image for the CLI.

    Image is tagged with the same name as the cli_command.

$ make docker-image
  1. Run the command inside the container.
$ docker-run --rm forksearch init

Documentation

  1. Install documentation-related dependencies.
$ make docs
  1. Serve the docs locally.
$ make serve-docs

Distribution

NOTE

Make sure you have account in PyPI before you try this out.

To publish you CLI to PyPI, run:

$ make distributions

dist directory will be created inside your project directory. Upload it to PyPI using:

$ twine dist/*

Help

For help related to make commands.

$ make help

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages