help

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 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(flags []varflag.Flag)

func (*Help) AddGlobalFlags

func (h *Help) AddGlobalFlags(flags []varflag.Flag)

func (*Help) AddSharedFlags added in v0.20.0

func (h *Help) AddSharedFlags(flags []varflag.Flag)

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