help

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OutlineCommandHelp

func OutlineCommandHelp(cur *command.Command, helpInfo common.HelpInfo) command.Action

func OutlineSectionHelp

func OutlineSectionHelp(_ *section.SectionT, hi common.HelpInfo) command.Action

Types

type CommandHelp

type CommandHelp func(cur *command.Command, helpInfo common.HelpInfo) command.Action

type HelpFlagMapping

type HelpFlagMapping struct {
	Name        string
	CommandHelp CommandHelp
	SectionHelp SectionHelp
}

HelpFlagMapping adds a new option to your --help flag

func BuiltinHelpFlagMappings

func BuiltinHelpFlagMappings() []HelpFlagMapping

BuiltinHelpFlagMappings is a convenience method that contains help flag mappings built into warg. Feel free to use it as a base to custimize help functions for your users

type SectionHelp

type SectionHelp func(cur *section.SectionT, helpInfo common.HelpInfo) command.Action

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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