ghs

command module
v0.0.0-...-192ab82 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 7 Imported by: 0

README

ghs 📜

release

gif

A npx-like script runner for GitHub gists

Fetch scripts from GitHub Gists and execute them as if they were native scripts. Uses the GitHub CLI for authentication under the hood.

Installation

Homebrew

brew tap flexwie/homebrew-flexwie
brew install flexwie/flexwie/ghs

apt

echo "deb [trusted=yes] https://apt.fury.io/flexwie/ /" >> /etc/apt/sources.list.d/fury.list
apt update
apt install ghs

From source
Clone the repository and run task build. Or get a binary from the assets of the latest release.

Usage

ghs [<user>/]<gist>

for example: ghs flexwie/test.sh. If no username is provided, the currently logged in user will be assumed.

Executors

Executors handle different gist types and languages and are mostly used for languages, that can't be invoked with a shebang (Go for example). Currently, there are two executors: one for shebang-style scripts and one for Go scripts.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL