help

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateHelp

func GenerateHelp(node *parser.CommandNode, tr Translator) string

GenerateHelp generates a formatted help string for a command node.

Example:

helpText := help.GenerateHelp(rootNode, nil)
fmt.Println(helpText)

Types

type Translator added in v2.0.4

type Translator func(string) string

Translator is a function that translates a key.

Jump to

Keyboard shortcuts

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