Back to godoc.org

Package versioncli

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Overview

Package versioncli implements a subcommand for obtaining version with the CLI.

Index

func CmdVersion

func CmdVersion(version string) *subcommands.Command

CmdVersion returns a "version" subcommand that prints to stdout the given version as well as CIPD package name and the package instance ID if the executable was installed via CIPD.

If the executable didn't come from CIPD, the package information is silently omitted.

'version' will be printed exact as given. The recommended format is "<appname> vMAJOR.MINOR.PATCH".

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier