version

package
v0.0.0-...-99e6f9e Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInfo

type BuildInfo struct {
	Time string `json:"time,omitempty"`
	Date string `json:"date,omitempty"`
}

type CompilerInfo

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

type DetailedInfo

type DetailedInfo struct {
	Name        string       `json:"name,omitempty"`
	Description string       `json:"description,omitempty"`
	Copyright   string       `json:"copyright,omitempty"`
	Version     VersionInfo  `json:"version,omitempty"`
	Compiler    CompilerInfo `json:"compiler,omitempty"`
	Build       BuildInfo    `json:"build,omitempty"`
	Git         GitInfo      `json:"git,omitempty"`
}

type GitInfo

type GitInfo struct {
	Tag    string `json:"tag,omitempty"`
	Commit string `json:"commit,omitempty"`
	Hash   string `json:"hash,omitempty"`
}

type ShortInfo

type ShortInfo struct {
	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
	Copyright   string `json:"copyright,omitempty"`
	Version     string `json:"version,omitempty"`
}

type Version

type Version struct {
	base.Command
	// Verbose prints extensive information about this application or plugin.
	Verbose bool `short:"v" long:"verbose" description:"Print extensive information about this application."`
}

Version is the command that prints information about the application or plugin to the console; it support both compact and verbose mode.

func (*Version) Execute

func (cmd *Version) Execute(args []string) error

Execute is the real implementation of the Version command.

type VersionInfo

type VersionInfo struct {
	Major string `json:"major,omitempty"`
	Minor string `json:"minor,omitempty"`
	Patch string `json:"patch,omitempty"`
}

func (*VersionInfo) String

func (v *VersionInfo) String() string

Jump to

Keyboard shortcuts

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