help

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Help

type Help struct {
	// contains filtered or unexported fields
}

func New

func New(info Info, style Style) *Help

func (*Help) AddCategoryDescriptions added in v0.20.0

func (h *Help) AddCategoryDescriptions(catdescs map[string]string)

func (*Help) AddCommand

func (h *Help) AddCommand(category, name, description string)

func (*Help) AddCommandFlags

func (h *Help) AddCommandFlags(f varflag.Flags)

func (*Help) AddGlobalFlags

func (h *Help) AddGlobalFlags(f varflag.Flags)

func (*Help) AddSharedFlags added in v0.20.0

func (h *Help) AddSharedFlags(f varflag.Flags)

func (*Help) Print

func (h *Help) Print() error

type Info

type Info struct {
	Name           string
	Description    string
	Version        string
	CopyrightBy    string
	CopyrightSince int
	License        string
	Address        string
	Usage          []string
	Info           []string
}

type Style added in v0.20.0

type Style struct {
	Primary     ansicolor.Style
	Info        ansicolor.Style
	Version     ansicolor.Style
	Credits     ansicolor.Style
	License     ansicolor.Style
	Description ansicolor.Style
	Category    ansicolor.Style
}

Jump to

Keyboard shortcuts

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