{
  "id": "hop",
  "name": "Hop",
  "description": "Interact with Hop in your terminal.",
  "executables": [
    "hop"
  ],
  "commands": {
    "format": 1,
    "label": "Hop",
    "description": "Deploy a container to Hop. Other subcommands are left out.",
    "quality": "ai-draft",
    "base": "fig:hop",
    "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/hop.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "deploy"
        ],
        "label": "Deploy a container",
        "description": "Deploy a directory as a new container.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/hop.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "dir",
            "label": "Directory",
            "description": "Defaults to the current directory.",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "name",
            "label": "Deployment name",
            "type": "string",
            "option": [
              "--name",
              "-n"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "type",
            "label": "Container type",
            "type": "string",
            "option": [
              "--type",
              "-t"
            ],
            "suggestions": [
              {
                "value": "ephemeral",
                "label": "ephemeral"
              },
              {
                "value": "persistent",
                "label": "persistent"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "containers",
            "label": "Container count",
            "type": "integer",
            "option": [
              "--containers",
              "-i"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "cpu",
            "label": "CPUs",
            "type": "integer",
            "option": [
              "--cpu",
              "-c"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "ram",
            "label": "RAM",
            "type": "string",
            "option": [
              "--ram",
              "-m"
            ],
            "suggestions": [
              {
                "value": "128MB",
                "label": "128MB"
              },
              {
                "value": "256MB",
                "label": "256MB"
              },
              {
                "value": "512MB",
                "label": "512MB"
              },
              {
                "value": "1G",
                "label": "1G"
              },
              {
                "value": "2G",
                "label": "2G"
              },
              {
                "value": "4G",
                "label": "4G"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "scaling",
            "label": "Scaling strategy",
            "type": "string",
            "option": [
              "--scaling",
              "-s"
            ],
            "suggestions": [
              {
                "value": "manual",
                "label": "manual"
              },
              {
                "value": "autoscale",
                "label": "autoscale"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "env",
            "label": "Environment variables",
            "description": "KEY=VALUE, repeatable.",
            "type": "string",
            "option": [
              "--env",
              "-e"
            ],
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "project",
            "label": "Project",
            "type": "string",
            "option": [
              "--project",
              "-p"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "deploy",
            "label": "Deploy",
            "fields": [
              "dir",
              "name",
              "type",
              "project"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "dir",
              "name",
              "type",
              "project"
            ]
          },
          {
            "id": "advanced",
            "label": "Resources",
            "fields": [
              "containers",
              "cpu",
              "ram",
              "scaling",
              "env"
            ]
          }
        ]
      }
    ]
  }
}
