{
  "id": "nginx",
  "name": "nginx",
  "description": "HTTP and reverse proxy server, mail proxy server and generic TCP/UDP proxy.",
  "executables": [
    "nginx"
  ],
  "commands": {
    "format": 1,
    "label": "Run or control nginx",
    "description": "Test a configuration, signal the master process, or print the version. Global directives and the prefix path are left out.",
    "quality": "ai-draft",
    "base": "fig:nginx",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/nginx.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "config",
        "label": "Configuration file",
        "type": "path",
        "option": [
          "-c"
        ],
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "test",
        "label": "Test configuration and exit",
        "type": "boolean",
        "option": [
          "-t"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "test_dump",
        "label": "Test and dump configuration",
        "type": "boolean",
        "option": [
          "-T"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "quiet",
        "label": "Suppress non-error messages while testing",
        "type": "boolean",
        "option": [
          "-q"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "signal",
        "label": "Signal master process",
        "type": "enum",
        "option": [
          "-s"
        ],
        "choices": [
          {
            "value": "stop",
            "label": "stop"
          },
          {
            "value": "quit",
            "label": "quit"
          },
          {
            "value": "reopen",
            "label": "reopen"
          },
          {
            "value": "reload",
            "label": "reload"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "version",
        "label": "Print version",
        "type": "boolean",
        "option": [
          "-v"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "version_full",
        "label": "Print version and build configuration",
        "type": "boolean",
        "option": [
          "-V"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "test",
        "label": "Test configuration",
        "set": {
          "test": [
            true
          ]
        },
        "fields": [
          "config",
          "test",
          "quiet"
        ],
        "required": []
      },
      {
        "id": "reload",
        "label": "Reload",
        "set": {
          "signal": [
            "reload"
          ]
        },
        "fields": [
          "signal"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "config",
          "test",
          "quiet",
          "signal",
          "version"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "test_dump",
          "version_full"
        ]
      }
    ]
  }
}
