https://github.com/foxcapades/gh-latest
Simple tool to print the latest release and downloads for a given GitHub repository.
https://github.com/foxcapades/gh-latest
github golang releases
Last synced: about 2 months ago
JSON representation
Simple tool to print the latest release and downloads for a given GitHub repository.
- Host: GitHub
- URL: https://github.com/foxcapades/gh-latest
- Owner: Foxcapades
- License: mit
- Created: 2020-05-15T20:16:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-05T13:16:46.000Z (about 3 years ago)
- Last Synced: 2025-04-06T11:48:38.404Z (about 1 year ago)
- Topics: github, golang, releases
- Language: Go
- Size: 47.9 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.adoc
- License: license
Awesome Lists containing this project
README
= GitHub Repo Release Lookup
image:https://www.travis-ci.org/Foxcapades/gh-latest.svg?branch=master["Build Status", link="https://www.travis-ci.org/Foxcapades/gh-latest"]
image:https://img.shields.io/github/v/release/Foxcapades/gh-latest[GitHub release (latest SemVer), link="https://github.com/Foxcapades/gh-latest/releases/latest"]
image:https://img.shields.io/github/license/Foxcapades/gh-latest[GitHub]
A simple tool that reports the latest release of a given GitHub repository.
Does not use the API to avoid rate limiting.
== Download
Downloads for Linux, Mac, and Windows are available from the releases page.
Or using `go get` to install:
[source, console]
----
go get -u github.com/Foxcapades/gh-latest/cmd/gh-latest
----
== Usage
.Basic Usage
[source, console]
----
$ gh-latest Foxcapades/gh-latest
{
"version": "v1.0.3",
"files": [
"https://github.com/Foxcapades/gh-latest/releases/download/v1.0.3/gh-latest-darwin.v1.0.3.tar.gz",
"https://github.com/Foxcapades/gh-latest/releases/download/v1.0.3/gh-latest-linux.v1.0.3.tar.gz",
"https://github.com/Foxcapades/gh-latest/releases/download/v1.0.3/gh-latest-windows.v1.0.3.zip"
]
}
----
.Get just the release tag
[source, console]
----
$ gh-latest -t Foxcapades/gh-latest
v1.0.3
----
.Get just the download urls
[source, console]
----
$ gh-latest -u Foxcapades/gh-latest
https://github.com/Foxcapades/gh-latest/releases/download/v1.0.3/gh-latest-darwin.v1.0.3.tar.gz
https://github.com/Foxcapades/gh-latest/releases/download/v1.0.3/gh-latest-linux.v1.0.3.tar.gz
https://github.com/Foxcapades/gh-latest/releases/download/v1.0.3/gh-latest-windows.v1.0.3.zip
----
.Help text
[source, console]
----
$ gh-latest -h
Usage:
gh-latest [OPTIONS]
Options
-u | --urls-only Print the output as a list of urls rather than a json object.
Cannot be used with -t/--tag-only
-t | --tag-only Print only the latest release tag rather than a json object.
Cannot be used with -u/--urls-only
-v | --version Prints this application's version.
Help & Info
-h | --help Prints this help text
Positional Arguments
User/Repo Required.
----