Skip to content

deitrix/ago

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Alias your go packages

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages