help

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdHelp

type CmdHelp struct {
	HelpTxt string
	HelpCtx func(cmd string) any
}

func (*CmdHelp) ParseAndRun

func (h *CmdHelp) ParseAndRun(args []string) ([]string, error)

func (*CmdHelp) PrintHelpAndExit

func (h *CmdHelp) PrintHelpAndExit(cmd string, exitCode int)

type HelpArgs

type HelpArgs struct {
	OnHelp func() `long:"help" short:"h"`
}

type HelpDict

type HelpDict map[string]CmdHelp

func (HelpDict) PrintHelpAndExit

func (h HelpDict) PrintHelpAndExit(main CmdHelp, args []string, exitCode int)

Jump to

Keyboard shortcuts

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