version

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package version contains build time configuration for the CLI, such as version information.

Index

Constants

View Source
const Name = "tfctl"

Name is the application name used throughout the CLI.

Variables

View Source
var (

	// Version defines what version this application is currently running as. It
	// is the publicly used version, which will be prefixed with a `v` if it is
	// a SemVer version.
	Version = publicVersion(version)

	// CommitTime is the exposed time.Time version of the commitTime. It's
	// introduced so we can do time comparison as desired.
	CommitTime = mustParseTime(committedTime)
)

Functions

func Commit

func Commit() string

Commit returns the git commit used for this specific version.

func IsDev

func IsDev() bool

IsDev returns true if the current version is a development version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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