{
  "id": "open",
  "name": "open",
  "description": "Opens files, folders, apps or URLs with the default application on macOS.",
  "executables": [
    "open"
  ],
  "platforms": [
    "macos"
  ],
  "commands": {
    "format": 1,
    "label": "Open with application",
    "description": "Open files, folders or URLs, optionally with a chosen app.",
    "quality": "ai-draft",
    "base": "fig:open",
    "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/open.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "targets",
        "label": "Files or URLs",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "any",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "app",
        "label": "Application",
        "type": "string",
        "option": [
          "-a"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "reveal",
        "label": "Reveal in Finder",
        "type": "boolean",
        "option": [
          "-R"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "text_edit",
        "label": "Open in TextEdit",
        "type": "boolean",
        "option": [
          "-e"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "new_instance",
        "label": "New instance",
        "type": "boolean",
        "option": [
          "-n"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "wait",
        "label": "Wait until app exits",
        "type": "boolean",
        "option": [
          "-W"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "background",
        "label": "Do not bring to foreground",
        "type": "boolean",
        "option": [
          "-g"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "hide",
        "label": "Launch hidden",
        "type": "boolean",
        "option": [
          "-j"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "default",
        "label": "Open with default app",
        "fields": [
          "targets"
        ],
        "required": [
          "targets"
        ]
      },
      {
        "id": "with-app",
        "label": "Open with a chosen app",
        "fields": [
          "targets",
          "app"
        ],
        "required": [
          "targets",
          "app"
        ]
      },
      {
        "id": "reveal",
        "label": "Reveal in Finder",
        "set": {
          "reveal": [
            true
          ]
        },
        "lock": [
          "reveal"
        ],
        "fields": [
          "targets",
          "reveal"
        ],
        "required": [
          "targets"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "targets",
          "app",
          "reveal"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "text_edit",
          "new_instance",
          "wait",
          "background",
          "hide"
        ]
      }
    ]
  }
}
