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.
Click to show internal directories.
Click to hide internal directories.