aslamplr / gh-cli

🖥 Yet another unofficial GitHub CLI! Minimalistic, opinionated, and unofficial by default.
https://github.com/aslamplr/gh-cli#gh-cli
MIT License
8 stars 1 forks source link
blazing-fast blazingly-fast built-with-rust cli gh-cli-unofficial github github-actions github-actions-secrets github-api-v3 github-api-v4 github-cli github-client manage rust unofficial

gh-cli

named gh-actions-secrets earlier, renamed to gh-cli.

Install

Option 1

Download pre-compiled binaries for MacOS, Ubuntu and Windows from the release page.

🗃 » Download the latest release «

Option 2

If you have installed cargo you may proceed to install this CLI using cargo. Note that while installing with cargo, cargo will try to build this crate from source.

cargo install --git https://github.com/aslamplr/gh-cli.git --tag v0.3.1

You may install cargo along with rust, follow the rust install instructions from here

cmd

Sub Commands

Repo

repo-cmd

Example

repo-cmd-sample

Secrets

secrets-cmd

Example

Add new secret to Github actions secrets

gh-cli secrets --auth_token=qwertyuipasdfghjklzxcvbnmlkgsdfg --name aslamplr/gh-cli --action add --secret_key SECRET_KEY --secret_value SECRET_VALUE_XYZ_BLAH_BLAH

List all secrets

gh-cli secrets --auth_token=qwertyuipasdfghjklzxcvbnmlkgsdfg --name aslamplr/gh-cli --action list

Development

Requirements

Run

cargo run -- --help

Build (release)

cargo build --release

Roadmap

Benchmark comparison using hyperfine on MacBook Air

command: hyperfine --warmup 3 'gh-cli repo --readme' 'gh repo view'

benchmark-against-official-cli

Note: Both gh-cli and gh pre logged in to make sure both have proper access tokens prior to run benchmarks.