func GenerateProviderSchema()

in provider-schema/main.go [11:35]


func GenerateProviderSchema(providerPath, gitBranch string) {
	dirPath := os.Getenv("PWD") + "/provider-schema"

	cmd := exec.Command("bash", "-c", fmt.Sprintf("%s/processors/.tools/generate-provider-schema/run.sh %s %s", dirPath, providerPath, gitBranch))
	cmd.Stdout = os.Stdout
	cmd.Stderr = os.Stderr

	err := cmd.Run()
	if err != nil {
		fmt.Printf("Error running script: %v\n", err)
		return
	}

	_, err = processors.ProcessOutput(providerPath, gitBranch, dirPath+"/processors")
	if err != nil {
		fmt.Printf("Error processing output: %v\n", err)
		return
	}

	_, err = processors.LoadProcessedOutput()
	if err != nil {
		fmt.Printf("Error loading processed output: %v\n", err)
		return
	}
}