Code Monkey home page Code Monkey logo

gh-cli's Introduction

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.

gh-cli's People

Contributors

aslamplr avatar dependabot-preview[bot] avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

danrspencer

gh-cli's Issues

Add gh-pages website

Add gh-pages website with minimal documentation, and download options link to Github etc.

Dockerize `gh-web`

Dockerize gh-web with scripts to build and run.
All docker related files should go inside docker in the project root.

Opt in features

Make the following features

  • Login
  • Config (depends on login, no use otherwise as of now!)
  • Repo
  • Secrets (Add, Edit - Libsodium dependency)
  • Workflows, ..
  • Chrono

Repo sub command

gh-cli repo --name aslamplr/gh-cli

Prints the repo basic information and first couple of lines from the README.md if available.

Auth with Github

Feature: GitHub Action Workflow Management

GitHub Action Workflow Management using CLI.
To be able to

* Add workflows
* Edit workflows
* Delete workflow

  • Start workflow

Need further enhancement of the feature.

Setup Config File

Setup config file for the user with auth token and other configurations.

It can be a .toml or .yml file in the users $HOME/.config/gh-cli/config.{toml|yml} path for example.

Store credentials optionally and no need to pass --auth_token arg each time.

Related #26

References

Dockerized CI

Dockerized CI with cross compilation. Rather than using the Ubuntu, MacOS, Windows containers in GitHub in favour of faster build times. Need to explore.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.