Versions in this module Expand all Collapse all v0 v0.0.2 Sep 11, 2020 v0.0.1 Jul 30, 2020 Changes in this version + var ClusterLabelArg = LabelArg("cluster") + var ClusterURLArg = &Argument + var CreateFileCause = errors.NewCause(errors.BadRequestCategory, "create_file") + var InvalidPortCause = errors.NewCause(errors.BadRequestCategory, "invalid_port") + var MissingArgCause = errors.NewCause(errors.BadRequestCategory, "missing_argument") + var MissingEnvVarCause = errors.NewCause(errors.BadRequestCategory, "missing_environment_variable") + var NoUserCause = errors.NewCause(errors.BadRequestCategory, "user_not_found") + var ProjectDescriptionArg = &Argument + var ProjectLabelArg = LabelArg("project-label") + var ProjectNameArg = &Argument + var RoleArg = &Argument + var SuggestionDescriptionArg = &Argument + var SuggestionIDArg = &Argument + var SuggestionNameArg = &Argument + var TokenIDArg = &Argument + var TokenUserArg = &Argument + var UserEmailArg = &Argument + func Arguments(ctx context.Context, a *Argument) interface + func Config(ctx context.Context) *config.Config + func EnvVariables(ctx context.Context, e *EnvVar) interface + func FormatTypes() map[FormatType]string + func NewApp() *cli.App + func NewHarness(responses []*coordinator.MockResponse) (*cli.App, *ui.Mock) + func Session(ctx context.Context) *config.Session + type AppProvider struct + func (a *AppProvider) Client(ctx context.Context) (*coordinator.Client, error) + func (a *AppProvider) UI(ctx context.Context) ui.UI + type Argument struct + Description string + Name string + Processor VariableProcessorFunc + Required bool + func LabelArg(f string) *Argument + func (a *Argument) String() string + func (a *Argument) Usage() string + type ArgumentValues map[*Argument]interface + type Command struct + Arguments []*Argument + Command *cli.Command + Description string + Examples []*Example + Usage string + Variables []*EnvVar + func (c *Command) ArgsUsageText() string + func (c *Command) Package() *cli.Command + func (c *Command) UsageText() string + type ContextKey string + const ArgumentContextKey + const ConfigContextKey + const EnvVarContextKey + const ProviderContextKey + const SessionContextKey + type EnvVar struct + Description string + Name string + Processor VariableProcessorFunc + Required bool + func DBURLEnvVar(required bool) *EnvVar + func (e *EnvVar) String() string + func (e *EnvVar) Usage() string + type EnvVarValues map[*EnvVar]interface + type Example struct + Description string + Example string + type FormatType string + const K8ConfigMap + const K8Secret + func (f FormatType) String() string + type Harness struct + func (t *Harness) NewMockProvider(context *cli.Context) Provider + type MockProvider struct + func (mp *MockProvider) Client(ctx context.Context) (*coordinator.Client, error) + func (mp *MockProvider) UI(ctx context.Context) ui.UI + type Provider interface + Client func(ctx context.Context) (*coordinator.Client, error) + UI func(ctx context.Context) ui.UI + func GetProvider(ctx context.Context) Provider + func NewAppProvider() Provider + type VariableProcessorFunc func(string) (interface{}, error)