version

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package version contains the version information for the CLI

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version injected at build time
	Version = "local"
	// Commit injected at build time
	Commit = "unknown"
	// BuildDate injected at build time
	BuildDate = "unknown"
)

Functions

func WarnIfNotLatestVersion added in v0.3.7

func WarnIfNotLatestVersion(parentCtx context.Context)

WarnIfNotLatestVersion checks the latest GitHub release and prints if the current version is not the latest.

Types

type V

type V struct {
	Version   string `json:"version"`
	Commit    string `json:"commit"`
	BuildDate string `json:"buildDate"`
}

V Version JSON struct

func GetVersion

func GetVersion() V

GetVersion returns the version information

func (V) String

func (v V) String() string

String returns the version information as a string

func (V) UserAgent

func (v V) UserAgent() string

UserAgent returns the user agent string

Jump to

Keyboard shortcuts

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