{
  "description": "Install a Haskell tool or choose the active version. Listing, removal, upgrade and the TUI are left out.",
  "name": "ghcup",
  "subcommands": [
    {
      "name": "install",
      "description": "Install a tool",
      "args": [
        {
          "name": "tool",
          "isOptional": true,
          "suggestions": [
            {
              "name": "ghc",
              "description": "GHC"
            },
            {
              "name": "cabal",
              "description": "cabal-install"
            }
          ]
        },
        {
          "name": "version",
          "description": "Omit for recommended; latest and recommended are accepted tags.",
          "isOptional": true,
          "suggestions": [
            {
              "name": "recommended",
              "description": "recommended"
            },
            {
              "name": "latest",
              "description": "latest"
            }
          ]
        }
      ]
    },
    {
      "name": "set",
      "description": "Set the active version",
      "args": [
        {
          "name": "tool",
          "isOptional": true,
          "suggestions": [
            {
              "name": "ghc",
              "description": "GHC"
            },
            {
              "name": "cabal",
              "description": "cabal-install"
            }
          ]
        },
        {
          "name": "version",
          "isOptional": true
        }
      ]
    }
  ]
}
