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

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] [-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)
  -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.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gh_utils-0.6.0.tar.gz
  • Upload date:
  • Size: 4.6 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.0.tar.gz
Algorithm Hash digest
SHA256 16dba42aeb77522ca37fa453ba847ea0e4ff8adf913d4bbc846c4f20e17bf440
MD5 83656efffd5020a7bcfc4f7135a069f7
BLAKE2b-256 9554d15873cad0a0e0f30aff861db10b2c5a83162d54622c67e82864d92b695f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gh_utils-0.6.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb9fcb3f03af76c7ec0dfa2778f1d92c977cb0693728d865ba5b9dcf83f292b1
MD5 35e1e1d9ff4ad89962cf29fdfd05d8d4
BLAKE2b-256 6bab89b2f1a31b5ef22f10e9a3a1ab53725f8978d283b36e34d4b0a78b20d88b

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