version

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 4 Imported by: 0

README

Structure of the versiontable.yml file

versiontable: {FEATURE KEYWORD}: startversion: {Start version} description: {Description about feature}

For example, the file structure can be:

versiontable: CREATED_VERSION_MANAGER: startversion: v0.1.1 description: Create version manager for Insolar platform CHANGED_CONSENSUS_VERSION_MANAGER: startversion: v0.5.2 description: Changed consensus of the version manager to BFT ...

Documentation

Overview

Package version provides project version information. Golang ldflags -X in Makefile is used for values substitution

Example:

fmt.Println(version.GetFullVersion())

Index

Constants

This section is empty.

Variables

View Source
var (
	Version     = "unset" // Version is release semantic version.
	BuildNumber = "unset" // BuildNumber is CI build number.
	BuildDate   = "unset" // BuildDate is build date.
	BuildTime   = "unset" // BuildTime is build date.
	CITool      = "unset" // CITool is a continuous integration tool(Travis, DockerCloud, etc.).
	GitHash     = "unset" // GitHash is short git commit hash.
)

Functions

func GetCommand

func GetCommand(cmdName string) *cobra.Command

func GetFullVersion

func GetFullVersion() string

GetFullVersion returns multi line full version information

Types

This section is empty.

Jump to

Keyboard shortcuts

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