version

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package version implements the "version" CLI command.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is the application version string. When built from a tagged release or installed via "go install", the Go toolchain embeds the module version automatically, and it is read from build info at startup. Override at link time only if the auto-detected value is incorrect:

go build -ldflags "-X 'github.com/StevenACoffman/lintme/cmd/version.Version=v1.2.3'"

Functions

This section is empty.

Types

type Config

type Config struct {
	*root.Config
	JSON    bool
	Flags   *ff.FlagSet
	Command *ff.Command
}

Config bundles the ff/v4 flag set, command node, JSON-output toggle, and the shared root config for the version subcommand.

func New

func New(parent *root.Config) *Config

New self-registers the version subcommand under parent.

Jump to

Keyboard shortcuts

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