commandline

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoCompleteHandler

type AutoCompleteHandler struct {
}

func (AutoCompleteHandler) Find

func (a AutoCompleteHandler) Find(commandText string, commands []*cli.Command, exclude []string) []string

type Cli

type Cli struct {
	StdIn          io.Reader
	StdOut         io.Writer
	StdErr         io.Writer
	ColoredOutput  bool
	Parser         parser.Parser
	ConfigProvider config.ConfigProvider
	Executor       executor.Executor
}

func (Cli) Run

func (c Cli) Run(args []string, configData []byte, definitionData []DefinitionData) error

type CommandBuilder

type CommandBuilder struct {
	StdIn          io.Reader
	StdOut         io.Writer
	ConfigProvider config.ConfigProvider
	Executor       executor.Executor
}

func (CommandBuilder) Create

func (b CommandBuilder) Create(definitions []parser.Definition) []*cli.Command

func (CommandBuilder) CreateDefaultFlags

func (b CommandBuilder) CreateDefaultFlags(hidden bool) []cli.Flag

func (CommandBuilder) HelpFlag

func (b CommandBuilder) HelpFlag() cli.Flag

type ConfigCommandHandler

type ConfigCommandHandler struct {
	StdIn          io.Reader
	StdOut         io.Writer
	ConfigProvider config.ConfigProvider
}

func (ConfigCommandHandler) Configure

func (h ConfigCommandHandler) Configure(profileName string) error

type DefinitionData

type DefinitionData struct {
	Name string
	Data []byte
}

func NewDefinitionData

func NewDefinitionData(name string, data []byte) *DefinitionData

type TypeConverter

type TypeConverter struct{}

func (TypeConverter) Convert

func (c TypeConverter) Convert(value string, parameter parser.Parameter) (interface{}, error)

Jump to

Keyboard shortcuts

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