{
  "description": "Create a pull request, list pull requests, or run a pipeline for a branch in the current Bitbucket repository. Other bb commands are left out.",
  "name": "bb",
  "subcommands": [
    {
      "name": "pr",
      "subcommands": [
        {
          "name": "create",
          "description": "Source defaults to the current branch. Default reviewers are added automatically.",
          "options": [
            {
              "names": [
                "--title"
              ],
              "description": "Title",
              "args": {
                "name": "title",
                "isOptional": false
              }
            },
            {
              "names": [
                "--description"
              ],
              "description": "Description",
              "args": {
                "name": "description",
                "isOptional": false
              }
            },
            {
              "names": [
                "-i"
              ],
              "description": "Prompt for missing title/description"
            }
          ],
          "args": [
            {
              "name": "target",
              "isOptional": true
            },
            {
              "name": "source",
              "isOptional": true
            }
          ]
        }
      ]
    },
    {
      "name": "pipeline",
      "subcommands": [
        {
          "name": "run",
          "description": "Runs the pipeline defined in bitbucket-pipelines.yml for a branch.",
          "args": [
            {
              "name": "branch",
              "isOptional": true
            }
          ]
        }
      ]
    }
  ]
}
