Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.

aslamplr/gh-cli

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

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

  • Rust (rustc 1.43.0)

Run

cargo run -- --help

Build (release)

cargo build --release

Roadmap

  • Blazing fast Unofficial Github CLI implemented in Rust
  • Rust client library for Github API

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.