help

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowCommandHelp

func ShowCommandHelp(help CommandHelp)

ShowCommandHelp displays help for a specific command

func ShowMainUsage

func ShowMainUsage()

ShowMainUsage displays the main help screen with colored output

func ShowVersion

func ShowVersion(version, commit, date string)

ShowVersion displays version information with colors

Types

type CommandHelp

type CommandHelp struct {
	Name        string
	Description string
	Usage       string
	Examples    []string
	Flags       []FlagHelp
}

CommandHelp represents help information for a command

func GetCommandHelp

func GetCommandHelp(commandName string) *CommandHelp

GetCommandHelp returns help information for built-in commands

type FlagHelp

type FlagHelp struct {
	Name        string
	Type        string
	Default     string
	Description string
}

FlagHelp represents help information for a flag

Jump to

Keyboard shortcuts

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