version

package
v0.0.0-...-208b0ff Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(ctx *cli.Context)

JSON prints a JSON of the version metadata.

Types

type Version

type Version struct {
	SemVer     string `json:"version"`
	CommitHash string `json:"commit_hash"`
	BuildTime  string `json:"build_time"`
	GoVersion  string `json:"go_version"`
	Compiler   string `json:"compiler"`
	Platform   string `json:"platform"`
}

Version encapsulates version metadata. SemVer - The Semantic Version of the CLI. CommitHash - Output of `git log –pretty=format:"%h" -n 1`. BuildTime - The time that the CLI was built. GoVersion - The Go runtime version. Compiler - The compiler toolchain identifier. Platform - The operating system and architecture compiled.

Jump to

Keyboard shortcuts

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