{
  "id": "tailcall",
  "name": "Tailcall",
  "description": "CLI for managing and optimizing GraphQL configurations.",
  "executables": [
    "tailcall"
  ],
  "commands": {
    "format": 1,
    "label": "Tailcall",
    "description": "Validate configs or start the GraphQL server.",
    "quality": "ai-draft",
    "base": "fig:tailcall",
    "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/tailcall.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "check"
        ],
        "label": "Validate a configuration",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tailcall.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "files",
            "label": "Config files",
            "type": "path",
            "path": {
              "kind": "file",
              "role": "input"
            },
            "position": 0,
            "multiple": true,
            "min": 1,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "n_plus_one",
            "label": "Detect N+1 queries",
            "type": "boolean",
            "option": [
              "--n-plus-one-queries"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "schema",
            "label": "Display schema",
            "type": "boolean",
            "option": [
              "--schema"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "format",
            "label": "Input format",
            "type": "string",
            "option": [
              "--format"
            ],
            "suggestions": [
              {
                "value": "gql",
                "label": "gql"
              },
              {
                "value": "graphql",
                "label": "graphql"
              },
              {
                "value": "yml",
                "label": "yml"
              },
              {
                "value": "yaml",
                "label": "yaml"
              },
              {
                "value": "json",
                "label": "json"
              }
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "check",
            "label": "Validate",
            "fields": [
              "files",
              "n_plus_one",
              "schema"
            ],
            "required": [
              "files"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "files",
              "n_plus_one",
              "schema",
              "format"
            ]
          }
        ]
      },
      {
        "path": [
          "start"
        ],
        "label": "Start the GraphQL server",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tailcall.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "files",
            "label": "Config files",
            "type": "path",
            "path": {
              "kind": "file",
              "role": "input"
            },
            "position": 0,
            "multiple": true,
            "min": 1,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "start",
            "label": "Start",
            "fields": [
              "files"
            ],
            "required": [
              "files"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "files"
            ]
          }
        ]
      }
    ]
  }
}
