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

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.2.4.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

gh_utils-0.2.4-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file gh-utils-0.2.4.tar.gz.

File metadata

  • Download URL: gh-utils-0.2.4.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.5 Darwin/22.1.0

File hashes

Hashes for gh-utils-0.2.4.tar.gz
Algorithm Hash digest
SHA256 74c4b74a333a37cd00eba82672f5734806632e4afdb16c889a9d90733a3dda28
MD5 4f443699300341819166b7717c8cded1
BLAKE2b-256 8a33b10bd97cf652a057626fa997e0ecb347a6325c74971e527bd3803387173b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gh_utils-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.5 Darwin/22.1.0

File hashes

Hashes for gh_utils-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2cb6ff00b349b9b88112ce47dbd4b8a0604d62dd629c36b8937b0b9c70f5d0fe
MD5 4c3f2e1b882594ed00f3d29e95bdd313
BLAKE2b-256 f51412b1a05ab2bddd95c8bc7f0d6bc4f5711d1b57b130fcb515d1478c152f52

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