cliparser

package
v0.0.0-...-a4d1c73 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: Apache-2.0 Imports: 5 Imported by: 12

Documentation

Overview

Package cliparser provides tools and structures for parsing and validating perun CLI arguments.

Index

Constants

View Source
const JSON = "json"
View Source
const YAML = "yaml"

Variables

View Source
var ChangeSetDefaultName string
View Source
var ConfigureMode = "configure"
View Source
var CreateChangeSetMode = "create-change-set"
View Source
var CreateParametersMode = "create-parameters"
View Source
var CreateStackMode = "create-stack"
View Source
var DeleteChangeSetMode = "delete-change-set"
View Source
var DestroySinkMode = "destroy-remote-sink"
View Source
var DestroyStackMode = "delete-stack"
View Source
var EstimateCostMode = "estimate-cost"
View Source
var LintMode = "lint"
View Source
var MfaMode = "mfa"
View Source
var SetStackPolicyMode = "set-stack-policy"
View Source
var SetupSinkMode = "setup-remote-sink"
View Source
var UpdateStackMode = "update-stack"
View Source
var ValidateMode = "validate"

Functions

This section is empty.

Types

type CliArguments

type CliArguments struct {
	Mode                    *string
	TemplatePath            *string
	Parameters              *map[string]string
	OutputFilePath          *string
	ConfigurationPath       *string
	Quiet                   *bool
	Yes                     *bool
	Verbosity               *string
	MFA                     *bool
	DurationForMFA          *int64
	Profile                 *string
	Region                  *string
	Sandbox                 *bool
	Stack                   *string
	Capabilities            *[]string
	PrettyPrint             *bool
	Progress                *bool
	ParametersFile          *string
	Block                   *bool
	Unblock                 *bool
	DisableStackTermination *bool
	EnableStackTermination  *bool
	ChangeSet               *string
	Lint                    *bool
	LinterConfiguration     *string
	SkipValidation          *bool
}

func ParseCliArguments

func ParseCliArguments(args []string) (cliArguments CliArguments, err error)

Get and validate CLI arguments. Returns error if validation fails.

Jump to

Keyboard shortcuts

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