grab

command module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

README

Grab

Grab is a tool that downloads source code repositories into a convenient directory layout created from the repo's URL's domain and path. It supports Git, Mercurial (hg), Subversion, and Bazaar repositories.

$ grab github.com/jmhodges/grab # https://github.com/jmhodges/grab also works.

$ ls ~/src/github.com/jmhodges/grab
LICENSE   README.md go.mod    go.sum    grab      main.go

By default, grab downloads into $HOME/src (overridable with the env var GRAB_HOME). The repo github.com/jmhodges/grab was stored in it with the domain (github.com) as the top-level directory, and jmhodges and grab created as subdirectories down the path.

Also, the input to grab doesn't have to contain a scheme (e.g. https://) to work.

Install

Grab can be installed by downloading a binary from the latest releases, unpacking the file, and copying it into your PATH.

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