utilities

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "dev"
	Commit  = "none"
	Date    = "unknown"
)

Functions

func DisplayVersionWithUpdateCheck

func DisplayVersionWithUpdateCheck()

DisplayVersionWithUpdateCheck displays the version information and checks for updates. This is the single source of truth for displaying version info with update notifications.

func GetChangelogUrl

func GetChangelogUrl(version string) string

func GetFormattedDate

func GetFormattedDate(inputDate string) string

GetFormattedDate parses inputDate as an RFC3339 timestamp and returns the date formatted as "MM-DD-YYYY" wrapped in parentheses (for example "(01-02-2006)"). If inputDate is empty or cannot be parsed as RFC3339, it returns an empty string.

func GetVersionOutput

func GetVersionOutput() string

GetVersionOutput returns the formatted version string used by both the version subcommand and the -v/--version flags

func VersionCmd

func VersionCmd() *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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