clier

package
v0.0.0-...-8035709 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applicationer

type Applicationer interface {
	Flag(string, string) FlagClauser
	Arg(string, string) ArgClauser
	Command(string, string) CmdClauser
	IsNil() bool
	ParseContext([]string) (ParseContexter, error)
	Parse([]string) (string, error)
	Name() string
}

type ArgClauser

type ArgClauser interface {
	Stringer() string
	String() *string
	Bool() *bool
	Required() ArgClauser
	Default(string) ArgClauser
	SetValue(Valuer) ArgClauser
	Envar(string) ArgClauser
}

type CmdClauser

type CmdClauser interface {
	Command(string, string) CmdClauser
	Flag(string, string) FlagClauser
	Arg(string, string) ArgClauser
	FullCommand() string
	IsEqualTo(CmdClauser) bool
}

type FlagClauser

type FlagClauser interface {
	Stringer() string
	String() *string
	Bool() *bool
	Required() FlagClauser
	Short(rune) FlagClauser
	Hidden() FlagClauser
	Default(string) FlagClauser
	Envar(string) FlagClauser
	SetValue(Valuer) FlagClauser
}

type ParseContexter

type ParseContexter interface {
	GetArgValue(ArgClauser) (interface{}, bool)
	GetFlagValue(FlagClauser) (interface{}, bool)
	GetParam(string) (interface{}, string)
	SelectedCommands() []CmdClauser
	IsInvalidContext() bool
}

type Valuer

type Valuer interface {
	Set(string) error
	String() string
}

Jump to

Keyboard shortcuts

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