{
  "id": "ghq",
  "name": "ghq",
  "description": "Organizes remote repository clones under a common root.",
  "homepage": "https://github.com/x-motemen/ghq",
  "executables": [
    "ghq"
  ],
  "commands": {
    "format": 1,
    "label": "Manage repository clones",
    "description": "Clone, list and create repositories under the ghq root.",
    "quality": "ai-draft",
    "base": "fig:ghq",
    "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/ghq.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "get"
        ],
        "label": "Clone a repository",
        "description": "Clone or sync a remote repository into the ghq root.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/ghq.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "repository",
            "label": "Repository",
            "description": "URL, user/project or host/user/project.",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "update",
            "label": "Update if already cloned",
            "type": "boolean",
            "option": [
              "--update",
              "-u"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "ssh",
            "label": "Clone with SSH",
            "type": "boolean",
            "option": [
              "-p"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "shallow",
            "label": "Shallow clone",
            "type": "boolean",
            "option": [
              "--shallow"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "branch",
            "label": "Branch",
            "type": "string",
            "option": [
              "--branch",
              "-b"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "look",
            "label": "Open after clone",
            "type": "boolean",
            "option": [
              "--look",
              "-l"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "bare",
            "label": "Bare clone",
            "type": "boolean",
            "option": [
              "--bare"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "vcs",
            "label": "VCS backend",
            "type": "string",
            "option": [
              "--vcs"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "clone",
            "label": "Clone",
            "fields": [
              "repository",
              "shallow",
              "ssh"
            ],
            "required": [
              "repository"
            ]
          },
          {
            "id": "update",
            "label": "Clone or update",
            "fields": [
              "repository",
              "update"
            ],
            "required": [
              "repository"
            ],
            "set": {
              "update": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "repository",
              "update",
              "ssh",
              "shallow",
              "branch"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "look",
              "bare",
              "vcs"
            ]
          }
        ]
      },
      {
        "path": [
          "list"
        ],
        "label": "List repositories",
        "description": "List repositories under the ghq root.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/ghq.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "query",
            "label": "Query",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "exact",
            "label": "Exact match",
            "type": "boolean",
            "option": [
              "--exact",
              "-e"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "full_path",
            "label": "Full paths",
            "type": "boolean",
            "option": [
              "--full-path",
              "-p"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "unique",
            "label": "Unique subpaths",
            "type": "boolean",
            "option": [
              "--unique"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "list",
            "label": "List",
            "fields": [
              "query",
              "full_path"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "query",
              "exact",
              "full_path"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "unique"
            ]
          }
        ]
      },
      {
        "path": [
          "create"
        ],
        "label": "Create a repository",
        "description": "Create a new repository under the ghq root.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/ghq.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "project",
            "label": "Project",
            "description": "project, user/project or host/user/project.",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "vcs",
            "label": "VCS backend",
            "type": "string",
            "option": [
              "--vcs"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "create",
            "label": "Create",
            "fields": [
              "project"
            ],
            "required": [
              "project"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "project"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "vcs"
            ]
          }
        ]
      }
    ]
  }
}
