Skip to main content

GitHub CLI Utilities

Project description

GH Utilities

A collection of useful utilities that work with GitHub CLI gh.

Installation

pipx

This is the recommended installation method.

$ pipx install gh-utils

pip

$ pip install gh-utils

Utilities

ghcrar

Short for gh_create_repo_and_add_to_remote

Features

  • Custom GitHub instance hostname support with --hostname
  • Supports both ssh and https protocols

Usage

$ ghcrar --help

usage: ghcrar [-h] [-a SUFFIX] [-n GITHUB REPO NAME] [--public] [--overwrite-remote-origin] [-H {ssh,https}] [-p PROTOCOL] [-S] [-V]

Create a GitHub repo with gh and add it as a remote

options:
  -h, --help            show this help message and exit
  -a SUFFIX, --append SUFFIX
                        String to append to the repo name (default: None)
  -n GITHUB REPO NAME, --name GITHUB REPO NAME
                        The string to use as GitHub repo name, or <user|org>/<repo-name> with a slash (default: None)
  --public              Create a public repository (default: False)
  --overwrite-remote-origin, --force
                        Overwrites remote origin if exists (default: False)
  -H {ssh,https}, --hostname {ssh,https}
                        GitHub hostname, default to use the first entry in hosts.yml (default: github.com)
  -p PROTOCOL, --protocol PROTOCOL
                        git protocol (default: ssh)
  -S, --no-set-default  Do not run `gh repo set-default` (default: False)
  -V, --version         show program's version number and exit

Screenshots

ghcrar-public

Develop

$ git clone https://github.com/tddschn/gh-utils.git
$ cd gh-utils
$ poetry install

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gh_utils-0.6.4.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

gh_utils-0.6.4-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file gh_utils-0.6.4.tar.gz.

File metadata

  • Download URL: gh_utils-0.6.4.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.2 Darwin/22.3.0

File hashes

Hashes for gh_utils-0.6.4.tar.gz
Algorithm Hash digest
SHA256 38f83e5e5ffc418dd3f5b2f3cc00b6f206ca97312653be64250e8691662da4ea
MD5 5adc45d6dffabb7c38237ee24029f059
BLAKE2b-256 bf18112e69b42d9b7b3360f5c9631f3670575657387e9d37c5dafe30007ee7c3

See more details on using hashes here.

File details

Details for the file gh_utils-0.6.4-py3-none-any.whl.

File metadata

  • Download URL: gh_utils-0.6.4-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.2 Darwin/22.3.0

File hashes

Hashes for gh_utils-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2d38e231dd9c0a4ce17676d1f0268988c2fe816f3693dd4a6b7b013910b0c960
MD5 25ac22de76317ed5b3052779e8f9175d
BLAKE2b-256 c393b2ccb105a7aa8e0beb7cb9f9af2cd5340ccbe19977ae5bcf0c360b3d8615

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page