cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(out io.Writer) error

func Short

func Short() string

Short returns the semantic version of the application

Types

type BuildInfo

type BuildInfo struct {
	Version   string    `json:"version,omitempty"`
	GitBranch string    `json:"gitBranch,omitempty"`
	GitCommit string    `json:"gitCommit,omitempty"`
	BuildDate string    `json:"buildDate,omitempty"`
	Go        GoDetails `json:"go,omitempty"`
}

BuildInfo contains build time information about the application

func Long

func Long() BuildInfo

Long returns the build time version information of the application

type GoDetails

type GoDetails struct {
	Version string `json:"version,omitempty"`
	OS      string `json:"os,omitempty"`
	Arch    string `json:"arch,omitempty"`
}

GoDetails contains Go compile time information

Jump to

Keyboard shortcuts

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