{
  "repo": "pingcap/tidb-operator",
  "binary": "overlay-gen",
  "binary_path": "cmd/overlay-gen/main.go",
  "dependencies": {
    "CLI OverlayGenerator.ParseFlags": {
      "infrastructure": {
        "runtime_flags": [
          {
            "operation": "PARSE FLAGS",
            "target": "output-file, output-dir, go-header-file, and remaining package arguments",
            "conditions": [
              "Always at process start"
            ],
            "implementation": "cmd/overlay-gen/main.go:34-40,72-79"
          }
        ]
      },
      "services": []
    },
    "CLI OverlayGenerator.ValidateArgs": {
      "infrastructure": {},
      "services": []
    },
    "CLI OverlayGenerator.GenerateOverlayTargets": {
      "infrastructure": {
        "filesystem": [
          {
            "operation": "READ FILE",
            "target": "go-header-file boilerplate",
            "conditions": [
              "--go-header-file is provided and validation passed"
            ],
            "implementation": "cmd/overlay-gen/main.go:106-111"
          },
          {
            "operation": "WRITE FILES",
            "target": "zz_generated.overlay.go and zz_generated.overlay_test.go in each input package directory or --output-dir",
            "conditions": [
              "gengo.Execute succeeds"
            ],
            "implementation": "cmd/overlay-gen/main.go:47-62,113-150"
          }
        ]
      },
      "services": []
    }
  }
}
