cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package cmd defines all the commands that Terracognita supports

Index

Constants

This section is empty.

Variables

View Source
var (

	// RootCmd it's the entry command for the cmd on terracognita
	RootCmd = &cobra.Command{
		Use:   "terracognita",
		Short: "Reads from Providers and generates a Terraform configuration",
		Long:  "Reads from Providers and generates a Terraform configuration, all the flags can be used also with ENV (ex: --access-key == ACCESS_KEY)",
		PersistentPreRun: func(cmd *cobra.Command, args []string) {

			if viper.GetBool("verbose") || viper.GetBool("debug") {
				logsOut = ioutil.Discard
				log.Init(os.Stdout, viper.GetBool("debug"))
			} else {
				logsOut = os.Stdout
				log.Init(ioutil.Discard, false)
			}
		},
	}
)
View Source
var (
	// Version is the value of the current verion, this
	// is set via -ldflags
	Version string
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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