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

Uploaded Source

Built Distribution

gh_utils-0.6.7-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gh_utils-0.6.7.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Darwin/22.5.0

File hashes

Hashes for gh_utils-0.6.7.tar.gz
Algorithm Hash digest
SHA256 46b191a254056c932e7e2879be7b832e9e728686a421a634ffbd360391b9a7d1
MD5 895b219f11e6505c19043f55b1d2ac83
BLAKE2b-256 4a594dd50ea91a86bf7baab7a6cc3503d88afd9e38d36ac7490f93c3497e79b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gh_utils-0.6.7-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Darwin/22.5.0

File hashes

Hashes for gh_utils-0.6.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6e593aa4c7d206cbe95a55894df50f0283367c65d013c7334f1ce302df7d7db4
MD5 b1e279bd35fad44a1bd3a44a2467a289
BLAKE2b-256 cdcb691b83fea13ca80615d9429fb9cf2d122c45667901521e44158abd4e2bbd

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