func init()

in cmd/terraform.go [113:135]


func init() {
	for key, s := range terraformCmds {
		info := s
		cmd := key
		recursive := false
		run := wrapTerraformCommand(cf.tfDir, cmd)
		if info.transform {
			run = wrapTerraformCommandWithEphemeralTransform(cf.tfDir, cmd, &recursive)
		}
		c := &cobra.Command{
			Use:   cmd,
			Short: "[terraform]: " + info.d,
			FParseErrWhitelist: cobra.FParseErrWhitelist{
				UnknownFlags: true,
			},
			RunE: run,
		}

		c.Flags().BoolVarP(&recursive, "recursive", "r", false, "With transforms to all modules or not, default to the root module only.")
		rootCmd.AddCommand(c)
		terraformCommands = append(terraformCommands, c)
	}
}