func init()

in cmd/root.go [51:74]


func init() {
	cobra.OnInitialize(initConfig)

	// Lets hide the pesky completion flag
	RootCmd.CompletionOptions.HiddenDefaultCmd = true

	// Here you will define your flags and configuration settings.
	// Cobra supports persistent flags, which, if defined here,
	// will be global for your application.

	RootCmd.PersistentFlags().
		StringVar(
			&cfgFile, "config", "",
			"config file (default is $HOME/.pastures.yaml)",
		)
	RootCmd.PersistentFlags().
		BoolVar(
			&verbose, "verbose", false, "controls Terraform output verbosity",
		)

	// Cobra also supports local flags, which will only run
	// when this action is called directly.
	RootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
}