1 unstable release

new 0.1.0 Nov 28, 2024

#1683 in Command line utilities

MIT license

15KB
367 lines

BountyHub CLI

bh is BountyHub CLI tool that allows you to interact with the BountyHub API. The idea is to provide a way to interact with the API from the terminal.

This is especially important for the BountyHub Runner. It can be used to download the results of previous runs and use it in your pipeline.

Installation

Install using a release

  1. Download the latest release from the releases page
  2. Extract the archive
  3. Move the bh binary to a directory in your PATH
  4. Run bh --help to see if the installation was successful

Install from source

  1. Clone the repository
  2. Change into the directory
  3. Run cargo install --path .

Auto completion

To enable auto-completion, you can run the following command:

If you are not sure which shell you are using, you can run the following command:

echo $SHELL

You can run the following command to see what shells are available:

bh completion --help

Examples:

Bash

source <(bh completion bash)

Zsh

source <(bh completion zsh)

Dependencies

~4–12MB
~143K SLoC