{
  "id": "hub",
  "name": "hub",
  "homepage": "https://hub.github.com",
  "description": "hub is a command line tool that wraps git in order to extend it with extra features and commands that make working with GitHub easier.",
  "executables": [
    "hub"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/hub"
    ],
    "secret": [],
    "side_effect": false,
    "secret_paths": [
      {
        "file": "~/.config/hub",
        "format": "yaml",
        "match": {
          "key_path": [
            "*.*.oauth_token"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "hub",
    "description": "Create a GitHub repository from the current directory. Cloning, pull requests and the other hub commands are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "subcommand": [
      {
        "path": [
          "create"
        ],
        "label": "Create a repository",
        "description": "Create a repository on GitHub and add a git remote for it.",
        "source": [
          {
            "id": "man",
            "kind": "manual",
            "url": "https://hub.github.com/hub-create.1.html",
            "revision": "2026-10",
            "evidence": "-p, --private\nCreate a private repository.\n-d, --description DESCRIPTION\nA short description of the GitHub repository.\n-h, --homepage HOMEPAGE\n--remote-name REMOTE\nSet the name for the new git remote (default: \"origin\").\n-o, --browse\nOpen the new repository in a web browser.\n-c, --copy\n"
          }
        ],
        "field": [
          {
            "id": "name",
            "label": "Repository name",
            "description": "Defaults to the current directory name.",
            "type": "string",
            "position": 0,
            "sources": [
              "man"
            ]
          },
          {
            "id": "private",
            "label": "Private",
            "type": "boolean",
            "option": [
              "--private",
              "-p"
            ],
            "sources": [
              "man"
            ]
          },
          {
            "id": "description",
            "label": "Description",
            "type": "string",
            "option": [
              "--description",
              "-d"
            ],
            "sources": [
              "man"
            ]
          },
          {
            "id": "homepage",
            "label": "Homepage URL",
            "type": "url",
            "option": [
              "--homepage",
              "-h"
            ],
            "sources": [
              "man"
            ]
          },
          {
            "id": "remote_name",
            "label": "Remote name",
            "type": "string",
            "option": [
              "--remote-name"
            ],
            "sources": [
              "man"
            ]
          },
          {
            "id": "browse",
            "label": "Open in browser",
            "type": "boolean",
            "option": [
              "--browse",
              "-o"
            ],
            "sources": [
              "man"
            ]
          }
        ],
        "task": [
          {
            "id": "private_repo",
            "label": "Create a private repository",
            "fields": [
              "name",
              "private",
              "description"
            ],
            "required": [],
            "set": {
              "private": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "name",
              "private",
              "description",
              "homepage"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "remote_name",
              "browse"
            ]
          }
        ]
      }
    ]
  }
}
