application

package
v8.4.30+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

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

func (App) Run

func (a App) Run() error

type CommandSet

type CommandSet map[string]commands.Command

type Configuration

type Configuration struct {
	Global               GlobalConfiguration
	Command              string
	SubcommandFlags      StringSlice
	State                storage.State
	ShowCommandHelp      bool
	CommandModifiesState bool
}

type GlobalConfiguration

type GlobalConfiguration struct {
	StateDir string
	Debug    bool
	Name     string
}

type Logger

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

func NewLogger

func NewLogger(writer io.Writer, reader io.Reader) *Logger

func (*Logger) Dot

func (l *Logger) Dot()

func (*Logger) NoConfirm

func (l *Logger) NoConfirm()

func (*Logger) Printf

func (l *Logger) Printf(message string, a ...interface{})

func (*Logger) Println

func (l *Logger) Println(message string)

func (*Logger) Prompt

func (l *Logger) Prompt(message string) bool

func (*Logger) PromptWithDetails

func (l *Logger) PromptWithDetails(resourceType, resourceName string) bool

func (*Logger) Step

func (l *Logger) Step(message string, a ...interface{})

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

Jump to

Keyboard shortcuts

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