{
  "id": "zrok",
  "name": "zrok",
  "homepage": "https://zrok.io/",
  "description": "A secure sharing platform for exposing local services and files.",
  "executables": [
    "zrok",
    "zrok2"
  ],
  "dotfiles": {
    "paths": [],
    "exclude": [],
    "secret": [
      "~/.zrok/",
      "~/.zrok2/"
    ],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "zrok",
    "description": "Share a local service or folder through zrok. Only the options shown in the project README are covered.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": true
    },
    "subcommand": [
      {
        "path": [
          "share",
          "public"
        ],
        "label": "Share publicly",
        "source": [
          {
            "id": "readme",
            "kind": "manual",
            "url": "https://github.com/openziti/zrok/blob/main/README.md",
            "evidence": "zrok share public localhost:8080\nzrok share public --backend-mode drive ~/Documents\nzrok share public -b drive\n"
          }
        ],
        "field": [
          {
            "id": "backend_mode",
            "label": "Backend mode",
            "type": "string",
            "option": [
              "--backend-mode",
              "-b"
            ],
            "suggestions": [
              {
                "value": "drive",
                "label": "Drive (share a folder)"
              }
            ],
            "sources": [
              "readme"
            ]
          },
          {
            "id": "target",
            "label": "Target (host:port or folder)",
            "type": "string",
            "position": 0,
            "sources": [
              "readme"
            ]
          }
        ],
        "task": [
          {
            "id": "web",
            "label": "Share a local web service",
            "fields": [
              "target"
            ],
            "required": [
              "target"
            ]
          },
          {
            "id": "drive",
            "label": "Share a folder as a drive",
            "fields": [
              "backend_mode",
              "target"
            ],
            "required": [
              "backend_mode",
              "target"
            ],
            "set": {
              "backend_mode": [
                "drive"
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "target",
              "backend_mode"
            ]
          }
        ]
      }
    ]
  }
}
