latest

command
v0.0.0-...-c5c4c8b Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2017 License: MIT Imports: 5 Imported by: 0

README

latest

latest is a command to check a provided version is latest or not in GitHub.

Usage

To check cloned repository is latest or not, just run with owner name and repository name which you want to check. If it is not latest version, it returns non-zero exit code.

$ latest -owner=tcnksm -repo=go-latest 2.4.1
$ echo $?
0

You can check version is new, it means version is not exist on GitHub and greater than others, and more outputs can be enabled with -debug flag,

$ latest -debug -new -owner=tcnksm repo=go-latest 2.4.1
2.2.1 is new

See more usage with -help options.

Install

To install latest command just run go get,

$ go get github.com/tcnksm/go-latest/latest

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