github-package-manager

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 1 Imported by: 0

README

GitHub Package Manager

Based on https://gist.github.com/redraw/13ff169741d502b6616dd05dccaa5554

Installation

Using asset from release

Just download binary from latest release

Using go
go install github.com/a-was/github-package-manager@latest
Manually
git clone https://github.com/a-was/github-package-manager.git
cd github-package-manager
go build .
Using github-package-manager
github-package-manager install a-was/github-package-manager

Configuration

GHPM is configured by environment variables

GHPM_DATABASE_PATH

Path to database file
Default $HOME/.ghpm.json

GHPM_BIN_FOLDER

Folder to install downloaded binaries
It is created by GHPM
Default $HOME/bin/

GHPM_REPO_FOLDER

Folder to download assets
It is created by GHPM and cleared on every installation
Default $HOME/tmp/

Usage

Get help
github-package-manager
Search for repo

For example to search for a bat (to see which username to use)

github-package-manager search bat
Install repo

For example to install bat

github-package-manager install sharkdp/bat
Update all installed repos
github-package-manager update

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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