Skip to content

Instantly share code, notes, and snippets.

@akavel
Created May 2, 2016 13:14
Show Gist options
  • Save akavel/dba956bc5595356d67c08759c41962d0 to your computer and use it in GitHub Desktop.
Save akavel/dba956bc5595356d67c08759c41962d0 to your computer and use it in GitHub Desktop.
vendo --help
$ vendo --help
Usage:
vendo [command]
Available Commands:
check [TODO][NIY] for use as a git pre-commit hook
recreate clone third-party packages from GOPATH to _vendor/ subdirectory
update update a third-party repo in _vendor/ from the Internet (like `go get -u`)
help Help about any command
Flags:
-h, --help[=false]: help for vendo
--v[=false]: show all executed commands
Use "vendo [command] --help" for more information about a command.
$ vendo --help recreate
Recreate analyzes *.go source files in current git repository, and
transitively discovers imported packages. If necessary, the packages are cloned
from GOPATH to the _vendor/ directory, and appropriate entries are added to the vendor.json
file. Finally, the results are added to staging area of the current repository,
ready for commit.
Usage:
vendo recreate [flags]
Flags:
--clone[=true]: if dependency doesn't exist in _vendor/, clone it from GOPATH
-h, --help[=false]: help for recreate
--platforms="": format: OS_ARCH,OS_ARCH2[,...]
$ vendo --help update
Update calls `go get -u` on a specified vendored package,
in order to download its newer version from the Internet.
Usage:
vendo update [flags]
Examples:
vendo update rsc.io/pdf
Flags:
--delete-patch[=false]: ignore local patches in the updated repository
--f[=false]: force package update even if it's not clean
-h, --help[=false]: help for update
--platforms="": format: OS_ARCH,OS_ARCH2[,...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment