cmd

package
v0.1.1-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2017 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const WARNING_MSG string = `` /* 149-byte string literal not displayed */

Variables

View Source
var Config *config.Config
View Source
var Log = log.Log{}
View Source
var RootCmd = &cobra.Command{
	Use:   "colonize",
	Short: "A terraform tool to manage environment driven templating",
	Long: `
Colonize is a configurable, albeit opinionated way to organize and manage your
terraform templates. It revolves around the idea of environments, and allows
you to organize templates, and template data around that common organizational
structure.

Once it's been configured, it allows for hierarical templates and variables,
and the ability to organize them in a defined manageable way.`,
}

RootCmd represents the base command when called without any subcommands

Functions

func CompleteFail

func CompleteFail(err string)

func CompleteSucceed

func CompleteSucceed()

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetConfig

func GetConfig(environment string) (*config.Config, error)

func GetConfigWithoutEnvironment

func GetConfigWithoutEnvironment() (*config.Config, error)

This is available for all the subcommands

func Run

func Run(name string, f func(*config.Config, log.Logger, interface{}) error, c *config.Config, l log.Logger, reverse bool, args interface{}) error

reverse is here because the destroy command will need to destroy stuff in reverse order.

func RunBranch

func RunBranch(name string, f func(*config.Config, log.Logger, interface{}) error, c *config.Config, l log.Logger, reverse bool, args interface{}) error

Types

type ApplyFlags

type ApplyFlags struct {
	Environment           string
	SkipRemote            bool
	RemoteStateAfterApply bool
}

type DestroyFlags

type DestroyFlags struct {
	Environment string
	SkipRemote  bool
}

type PlanFlags

type PlanFlags struct {
	Environment string
	SkipRemote  bool
}

type PrepFlags

type PrepFlags struct {
	Environment string
}

Jump to

Keyboard shortcuts

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