cmd

package
v0.26.18 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:           "escape",
	SilenceErrors: true,
	SilenceUsage:  true,
	Short:         "Package and deployment manager",
	Long: `Escape v` + util.EscapeVersion + ` 

Escape is a tool to help with the release engineering, life-cycle management
and Continuous Delivery of software platforms and their artefacts.
    
See the documentation at https://escape.ankyra.io/docs/
`,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		context = model.NewContext()
		err := context.LoadEscapeConfig(cfgFile, cfgProfile)
		if err != nil {
			return err
		}

		logger, err := logger.GetLogger(cfgLogger, cfgLogLevel, cfgLogCollapse)
		if err != nil {
			return err
		}
		context.SetLogger(logger)
		return nil
	},
}

Functions

func Execute

func Execute()

func ListDeployedErrands

func ListDeployedErrands(state, environment, deployment string) error

func ListErrands

func ListErrands(cmd *cobra.Command, args []string) error

func ListLocalErrands

func ListLocalErrands(state, environment, escapePlanLocation string) error

func LoadState

func LoadState() error

func NoExtraArgsPreRunE

func NoExtraArgsPreRunE(cmd *cobra.Command, args []string) error

func ParseExtraProviders

func ParseExtraProviders(extraVars []string) (map[string]string, error)

func ParseExtraVars

func ParseExtraVars(extraVars []string) (result map[string]interface{}, err error)

func ProcessFlagsForContext

func ProcessFlagsForContext() error

func ProcessFlagsForContextAndLoadEscapePlan

func ProcessFlagsForContextAndLoadEscapePlan() error

func ProcessFlagsForContextAndLoadEscapePlanWithVersionOverride

func ProcessFlagsForContextAndLoadEscapePlanWithVersionOverride(versionOverride string) error

func RunDeployedErrand

func RunDeployedErrand(deployment, errand string, parsedExtraVars map[string]interface{}) error

func RunLocalErrand

func RunLocalErrand(deployment, errand string, parsedExtraVars map[string]interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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