{
  "id": "bazel",
  "name": "Bazel",
  "homepage": "https://bazel.build",
  "description": "Bazel is an open-source build and test tool similar to Make, Maven, and Gradle.",
  "icon": "SimpleIcons:bazel",
  "executables": [
    "bazel",
    "bazelisk"
  ],
  "dotfiles": {
    "paths": [
      "~/.bazelrc"
    ],
    "exclude": [],
    "secret": [],
    "machine_lines": [
      {
        "file": "~/.bazelrc",
        "match": {
          "prefix": [
            "startup --output_user_root",
            "build --disk_cache",
            "build --repository_cache"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Bazel startup options",
    "description": "Startup options that go before the command. Use the subcommand tabs to build, test or run targets; query, clean and other commands are left out.",
    "quality": "ai-draft",
    "base": "fig:bazel",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/bazel.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "batch",
        "label": "Batch mode",
        "description": "Run as a client process without a server.",
        "type": "boolean",
        "option": [
          "--batch"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "bazelrc",
        "label": "User bazelrc",
        "type": "path",
        "option": [
          "--bazelrc"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "ignore_all_rc_files",
        "label": "Ignore all rc files",
        "type": "boolean",
        "option": [
          "--ignore_all_rc_files"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "output_base",
        "label": "Output base",
        "description": "Where all build output is written.",
        "type": "path",
        "option": [
          "--output_base"
        ],
        "path": {
          "kind": "directory",
          "role": "output"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "max_idle_secs",
        "label": "Max idle seconds",
        "description": "Seconds the server idles before shutting down.",
        "type": "integer",
        "option": [
          "--max_idle_secs"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "batch",
        "label": "Batch mode",
        "fields": [
          "batch"
        ],
        "required": [],
        "set": {
          "batch": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "batch"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "bazelrc",
          "ignore_all_rc_files",
          "output_base",
          "max_idle_secs"
        ]
      }
    ],
    "subcommand": [
      {
        "path": [
          "build"
        ],
        "label": "Build targets",
        "description": "Build the specified targets. Per-command flags are not in the completion data; add them by hand.",
        "parser": {
          "end_of_options": "--",
          "interleave": "permute",
          "long_equals": true,
          "short_attached": true,
          "short_bundles": false
        },
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/bazel.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "targets",
            "label": "Targets",
            "description": "Bazel label, for example //app:server or //...",
            "type": "string",
            "position": 0,
            "multiple": true,
            "suggestions": [
              {
                "value": "//...",
                "label": "//..."
              }
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "build",
            "label": "All targets",
            "fields": [
              "targets"
            ],
            "required": [
              "targets"
            ],
            "set": {
              "targets": [
                "//..."
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "targets"
            ]
          }
        ]
      },
      {
        "path": [
          "test"
        ],
        "label": "Run tests",
        "description": "Build and run the specified test targets. Per-command flags are not in the completion data; add them by hand.",
        "parser": {
          "end_of_options": "--",
          "interleave": "permute",
          "long_equals": true,
          "short_attached": true,
          "short_bundles": false
        },
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/bazel.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "targets",
            "label": "Targets",
            "description": "Bazel label, for example //app:server or //...",
            "type": "string",
            "position": 0,
            "multiple": true,
            "suggestions": [
              {
                "value": "//...",
                "label": "//..."
              }
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "test",
            "label": "All targets",
            "fields": [
              "targets"
            ],
            "required": [
              "targets"
            ],
            "set": {
              "targets": [
                "//..."
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "targets"
            ]
          }
        ]
      },
      {
        "path": [
          "run"
        ],
        "label": "Run a target",
        "description": "Run the specified target. Per-command flags are not in the completion data; add them by hand.",
        "parser": {
          "end_of_options": "--",
          "interleave": "permute",
          "long_equals": true,
          "short_attached": true,
          "short_bundles": false
        },
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/bazel.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "targets",
            "label": "Target",
            "description": "Bazel label, for example //app:server or //...",
            "type": "string",
            "position": 0,
            "suggestions": [
              {
                "value": "//...",
                "label": "//..."
              }
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "run",
            "label": "All targets",
            "fields": [
              "targets"
            ],
            "required": [
              "targets"
            ],
            "set": {
              "targets": [
                "//..."
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "targets"
            ]
          }
        ]
      }
    ]
  }
}
