gopack

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 6 Imported by: 0

README

GoPack

Simple CLI to search and install packages with gop get <package-name> <...more> or interactively by just running gop.

Installation

1. Clone repository
git clone https://github.com/juancwu/gopack

2. CD into repository and build
cd gopack && make build

3. Move binary to your desired location
mv ./build/gop <your-path>

Usage

There is a help command, but there is also this.

Single Package

Following the naming scheme for Go packages, GoPack assumes the prefix github.com/.

You can directly use the package name or any query string you would use in https://pkg.go.dev, such as something/package and GoPack will search the Go directory and select the first match of the results and install it.

Example: gop get package will install github.com/something/package.

You can make GoPack to show the search results and select manually by passing the option -select.

Multiple Packages

GoPack accepts multiple query strings separated by spaces. The default behaviour is the same as Single Package and you can select the matches for each query by using the option -select.

Example: gop get package something/else will install github.com/something/package and github.com/something/else.

Removing Packages

Just go mod tidy.

Download All Dependencies

Just go mod download

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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