Documentation ¶
Index ¶
- type App
- type CommandSet
- type Configuration
- type GlobalConfiguration
- type Logger
- func (l *Logger) Dot()
- func (l *Logger) NoConfirm()
- func (l *Logger) Printf(message string, a ...interface{})
- func (l *Logger) Println(message string)
- func (l *Logger) Prompt(message string) bool
- func (l *Logger) PromptWithDetails(resourceType, resourceName string) bool
- func (l *Logger) Step(message string, a ...interface{})
- type StateValidator
- type StringSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func New ¶
func New(commands CommandSet, configuration Configuration, usage usage) App
type CommandSet ¶
type Configuration ¶
type Configuration struct { Global GlobalConfiguration Command string SubcommandFlags StringSlice State storage.State ShowCommandHelp bool CommandModifiesState bool }
type GlobalConfiguration ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) PromptWithDetails ¶
type StateValidator ¶ added in v1.2.1
type StateValidator struct {
// contains filtered or unexported fields
}
func NewStateValidator ¶ added in v1.2.1
func NewStateValidator(stateDir string) StateValidator
func (StateValidator) Validate ¶ added in v1.2.1
func (s StateValidator) Validate() error
type StringSlice ¶
type StringSlice []string
func (StringSlice) ContainsAny ¶
func (s StringSlice) ContainsAny(targets ...string) bool
Click to show internal directories.
Click to hide internal directories.