gh-config-rs
Loads config and hosts for gh CLI in Rust.
Getting started
[]
= "0.5.1"
Usage
use Error;
use *;
CLI
gh-config-rs is a hybrid crate that can be used as a library or a CLI. To use as a CLI, can be installed using the command line below:
cargo install gh-config --features=cli
Usages
Lists all configuration in YAML:
gh-config config show
Uses JSON instead:
gh-config --json config show
Uses custom path of config.yaml instead of default:
gh-config --path /path/to/config.yaml config show
Gets an authentication for github.com:
gh-config authn get github.com
Outputs only the OAuth token instead:
gh-config authn get --token-only github.com