ugbt

command module
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: BSD-3-Clause Imports: 26 Imported by: 0

README

Ugg Boot

Ugg boot

Ugg boot is a tool for people wanting to have some comfort in their lives.

It provides a simple way to update Go executables and list available versions using module version information embedded in the executable.

  • list: print a list of available versions for a Go executable.
  • install: reinstall or update an executable from source.
  • update: update an executable to latest release if it is newer than the installed version.
  • repo: print the source code repository for the executable.
  • bugs: print the issues link for the executable.

Installation

Ugg boot can be installed by go install github.com/kortschak/ugbt@latest.

Example Use

Go executable:

Show the repo for an executable.

$ ugbt repo goimports
https://cs.opensource.google/go/x/tools

List all available released versions.

$ ugbt list -all goimports
v0.1.7  28 Sep 2021 22:34
v0.1.6  17 Sep 2021 17:58
v0.1.5  13 Jul 2021 20:15
v0.1.4  23 Jun 2021 15:16
v0.1.3   9 Jun 2021 21:40
v0.1.2  25 May 2021 19:05
v0.1.1  11 May 2021 17:48
v0.1.0  19 Jan 2021 22:25

Upgrade to the latest version.

$ go version -m $(which goimports) | grep -v dep
$GOBIN/goimports: go1.17.3
	path	golang.org/x/tools/cmd/goimports
	mod	golang.org/x/tools	v0.1.6	h1:SIasE1FVIQOWz2GEAHFOmoW7xchJcqlucjSULTL0Ag4=
$ ugbt install goimports latest
$ go version -m $(which goimports) | grep -v dep
$GOBIN/goimports: go1.17.3
	path	golang.org/x/tools/cmd/goimports
	mod	golang.org/x/tools	v0.1.7	h1:6j8CgantCy3yc8JGBqkDLMKWqZ0RDU2g1HVgacojGWQ=
Go toolchain:

Show the repo for the tool chain.

$ ugbt repo go
https://cs.opensource.google/go/go

Show the bugs page for the tool chain.

$ ugbt bugs go
https://github.com/golang/go/issues

Install gotip.

$ ugbt install go gotip
go tool available as gotip
$ gotip version
go version devel go1.18-a142d65 Sat Nov 27 19:49:32 2021 +0000 linux/amd64

Ugg boot is a product of Australia.

Documentation

Overview

Ugg boot provides a simple way to update Go executables and list available versions using module version information embedded in the executable.

Available commands are:

list: return a list of available versions for a Go executable.
install: install an executable from source based on source location
         information stored in the executable.
update: update an executable to the latest release if it is newer
        than the installed version.
repo: print the source code repository for the executable.
bugs: print the issues link for the executable.
version: print the ugbt version information
help: output ugbt help information

Directories

Path Synopsis
internal
browser
Package browser provides utilities for interacting with users' browsers.
Package browser provides utilities for interacting with users' browsers.
modrepo
Package modrepo provide a function to obtain the repo URL for a module path.
Package modrepo provide a function to obtain the repo URL for a module path.
tool
Package tool is a harness for writing Go tools.
Package tool is a harness for writing Go tools.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL