{
  "id": "hexo",
  "name": "Hexo",
  "description": "Command line interface for Hexo, a static site generator.",
  "homepage": "https://hexo.io",
  "executables": [
    "hexo"
  ],
  "commands": {
    "format": 1,
    "label": "Hexo",
    "description": "Common Hexo blog jobs: create a post, generate the site and run the local server. Deploy, migrate and init are left out.",
    "quality": "ai-draft",
    "base": "fig:hexo",
    "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/hexo.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "new"
        ],
        "label": "Create a post",
        "description": "Create a new article from a layout.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/hexo.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "layout",
            "label": "Layout",
            "type": "string",
            "position": 0,
            "suggestions": [
              {
                "value": "post",
                "label": "post"
              },
              {
                "value": "page",
                "label": "page"
              },
              {
                "value": "draft",
                "label": "draft"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "title",
            "label": "Title",
            "type": "string",
            "position": 1,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "slug",
            "label": "Slug",
            "type": "string",
            "option": [
              "--slug",
              "-s"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "replace",
            "label": "Replace existing",
            "type": "boolean",
            "option": [
              "--replace",
              "-r"
            ],
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "new-post",
            "label": "New post",
            "fields": [
              "layout",
              "title",
              "slug",
              "replace"
            ],
            "required": [
              "title"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "layout",
              "title",
              "slug",
              "replace"
            ]
          }
        ]
      },
      {
        "path": [
          "generate"
        ],
        "label": "Generate static files",
        "description": "Generate the static site into the public folder.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/hexo.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "deploy",
            "label": "Deploy afterwards",
            "type": "boolean",
            "option": [
              "--deploy",
              "-d"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "force",
            "label": "Force regenerate",
            "type": "boolean",
            "option": [
              "--force",
              "-f"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "watch",
            "label": "Watch for changes",
            "type": "boolean",
            "option": [
              "--watch",
              "-w"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "bail",
            "label": "Fail on errors",
            "type": "boolean",
            "option": [
              "--bail",
              "-b"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "generate",
            "label": "Generate",
            "fields": [
              "force",
              "watch",
              "bail",
              "deploy"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "force",
              "watch",
              "bail",
              "deploy"
            ]
          }
        ]
      },
      {
        "path": [
          "server"
        ],
        "label": "Start local server",
        "description": "Serve the site locally, by default at http://localhost:4000/.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/hexo.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "ip",
            "label": "IP address",
            "type": "string",
            "option": [
              "--ip",
              "-i"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "port",
            "label": "Port",
            "type": "integer",
            "option": [
              "--port",
              "-p"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "static",
            "label": "Static only",
            "type": "boolean",
            "option": [
              "--static",
              "-s"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "open",
            "label": "Open in browser",
            "type": "boolean",
            "option": [
              "--open",
              "-o"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "serve",
            "label": "Serve locally",
            "fields": [
              "port",
              "ip",
              "static",
              "open"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "port",
              "ip",
              "static",
              "open"
            ]
          }
        ]
      }
    ]
  }
}
