ago

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 10 Imported by: 0

README

ago

ago is a wrapper around the go command that adds the ability to alias packages with short, memorable names. Only the get and install commands are affected. All other flags and arguments are passed through to the go command.

Installation

go install github.com/deitrix/ago@latest

Configuration

By default, ago stores aliases in $HOME/.ago/. This can be changed by setting the AGO_CONFIG_DIR environment variable.

Usage

Define a package alias:

ago alias foo github.com/foo/bar/v2

Get a package using the alias:

ago get foo

List package aliases:

ago alias ls

Remove a package alias:

ago alias rm foo

TODO

  • Make ago help a bit more consistent with go help

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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