luci: go.chromium.org/luci/client/versioncli Index | Files

package versioncli

import "go.chromium.org/luci/client/versioncli"

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

Index

Package Files

versioncli.go

func CmdVersion Uses

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".

Package versioncli imports 4 packages (graph) and is imported by 13 packages. Updated 2019-02-18. Refresh now. Tools for package owners.