help

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSubCommandNotFound = errors.New("subcommand not found")
)

Functions

This section is empty.

Types

type Command

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

Help command that prints

func (Command) Alias

func (c Command) Alias() string

func (Command) HelpText

func (h Command) HelpText() string

HelpText for the Help command

func (Command) Name

func (h Command) Name() string

func (Command) ParentName

func (h Command) ParentName() string

func (*Command) Receive

func (h *Command) Receive(pl []core.Plugin)

Receive the plugins and stores the Commands for later usage on the help text.

func (*Command) Run

func (h *Command) Run(ctx context.Context, root string, args []string) error

Run the help command

Jump to

Keyboard shortcuts

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