help

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package help - internal help handling code.

Index

Constants

This section is empty.

Variables

View Source
var Indentation = 4

Indentation - Number of spaces used for indentation.

Functions

func CommandList

func CommandList(commandMap map[string]string) string

CommandList - commandMap => name: description

func Name

func Name(scriptName, name, description string) string

Name -

func OptionList

func OptionList(args []SynopsisArg, options []*option.Option) string

OptionList - Return a formatted list of options and their descriptions.

func Synopsis

func Synopsis(scriptName, name string, args []SynopsisArg, options []*option.Option, commands []string) string

Synopsis - Return a default synopsis.

Types

type SynopsisArg added in v0.27.0

type SynopsisArg struct {
	Arg         string
	Description string
}

Jump to

Keyboard shortcuts

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