Skip to content

babarot/gotcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status MIT License GitHub release

gotcha is a simple tool that grabs Go packages

Description

Once you've found a Go software title to your liking, you can easily install it with gotcha: just add the package name.

DEMO:

Features

  • config.toml

    It is possible to manage the go package list that you want to install by writing a TOML file such as the following:

     repos = [
     	"github.com/BurntSushi/toml",
     	"github.com/BurntSushi/toml/cmd/tomlv",
     	"github.com/b4b4r07/gch",
     	"github.com/b4b4r07/go-pipe",
     	"github.com/b4b4r07/gomi",
     	# ...,
     ]

    TOML is easier to read and easier to write than JSON.

  • Install in parallel

    Fast installation thanks to the parallel processing by goroutine.

Usage

repos that are described in config.toml will be install or update.

$ gotcha --help
Usage: gotcha [options] [path]
gotcha is a simple tool that grabs Go packages

Options:
--verbose, -v     Cause gotcha to be verbose, showing items as they are installed.
--version         Print the version of this application

Installation

For zsh user, you can easily install gotcha by using zplug:

zplug "b4b4r07/gotcha", \
    from:gh-r, \
    as:command

If you want to go the Go way (install in GOPATH/bin) and just want the command:

$ go get github.com/b4b4r07/gotcha

Configuration

To customize gotcha settings:

repos = [
    # Adding the repository to repos
    "github.com/BurntSushi/toml",
    "github.com/BurntSushi/toml/cmd/tomlv",
]

[emoji]
  [emoji.verbose]
    pass = ":ok_woman:"
    fail = ":no_good:"
  [emoji.download]
    pass = ":arrow_right:"
    fail = ":x:"

License

MIT © BABAROT (a.k.a. b4b4r07)

About

gotcha is a simple tool that grabs Go packages

Resources

Stars

Watchers

Forks

Packages

No packages published