versioncli

package
v0.0.0-...-51f9457 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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