version

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package version provides the subcommand for printing the tool version.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

NewCommand creates a cobra.Command instance for the version command.

Types

type Command

type Command struct {
	// Command is the version cobra.Command instance
	Command *cobra.Command
}

Command encapsulates the version cobra command with its version string.

func NewVersionCommand

func NewVersionCommand() *Command

NewVersionCommand creates a Command for displaying the application version.

func (*Command) Flags

func (cmd *Command) Flags()

Flags adds version-specific flags to the command.

Jump to

Keyboard shortcuts

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