Help us shape the future of Go! Take the 2026 Go Developer Survey

application

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2016 License: Apache-2.0 Imports: 8 Imported by: 39

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSCredentialValidator

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

func NewAWSCredentialValidator

func NewAWSCredentialValidator(configuration Configuration) AWSCredentialValidator

func (AWSCredentialValidator) Validate

func (a AWSCredentialValidator) Validate() error

type App

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

func New

func New(commands CommandSet, configuration Configuration, stateStore stateStore,
	usage usage) App

func (App) Run

func (a App) Run() error

type CommandFinder

type CommandFinder interface {
	FindCommand([]string) CommandFinderResult
}

func NewCommandFinder

func NewCommandFinder() CommandFinder

type CommandFinderResult

type CommandFinderResult struct {
	GlobalFlags []string
	Command     string
	OtherArgs   []string
}

type CommandLineConfiguration

type CommandLineConfiguration struct {
	Command          string
	SubcommandFlags  []string
	EndpointOverride string
	StateDir         string
	// contains filtered or unexported fields
}

type CommandLineParser

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

func NewCommandLineParser

func NewCommandLineParser(usage func(), commandSet CommandSet) CommandLineParser

func (CommandLineParser) Parse

func (p CommandLineParser) Parse(arguments []string) (CommandLineConfiguration, error)

type CommandSet

type CommandSet map[string]commands.Command

type Configuration

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

type ConfigurationParser

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

func NewConfigurationParser

func NewConfigurationParser(commandLineParser commandLineParser) ConfigurationParser

func (ConfigurationParser) Parse

func (p ConfigurationParser) Parse(arguments []string) (Configuration, error)

type GlobalConfiguration

type GlobalConfiguration struct {
	EndpointOverride string
	StateDir         string
}

type Logger

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

func NewLogger

func NewLogger(writer io.Writer) *Logger

func (*Logger) Dot

func (l *Logger) Dot()

func (*Logger) Println

func (l *Logger) Println(message string)

func (*Logger) Prompt

func (l *Logger) Prompt(message string)

func (*Logger) Step

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

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