generator

package
v0.0.0-...-2a66af1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	CommandName             string
	DontCompleteFiles       bool
	DontCompleteSubCommands bool
	Flags                   []*types.Flag
	SubCommands             []*types.SubCommand
}

Generator defines a completer generator

func New

func New(commandName string, flags []*types.Flag, subCommands []*types.SubCommand) *Generator

New creates a new instance of a generator

func (*Generator) Render

func (g *Generator) Render(writer io.Writer) error

Render renders the completer

Jump to

Keyboard shortcuts

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