{
  "id": "shortcuts",
  "name": "shortcuts",
  "description": "Command-line utility for running Shortcuts on macOS.",
  "executables": [
    "shortcuts"
  ],
  "platforms": [
    "macos"
  ],
  "commands": {
    "format": 1,
    "label": "Shortcuts",
    "description": "Run or list Shortcuts. view, sign and help are left out.",
    "quality": "ai-draft",
    "base": "fig:shortcuts",
    "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/shortcuts.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "run"
        ],
        "label": "Run a shortcut",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/shortcuts.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "name",
            "label": "Shortcut name",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "input",
            "label": "Input file",
            "type": "path",
            "option": [
              "-i",
              "--input-path"
            ],
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "output",
            "label": "Output file",
            "type": "path",
            "option": [
              "-o",
              "--output-path"
            ],
            "path": {
              "kind": "file",
              "role": "output",
              "must_exist": false
            },
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "output_type",
            "label": "Output type",
            "type": "string",
            "option": [
              "--output-type"
            ],
            "suggestions": [
              {
                "value": "public.json",
                "label": "JSON"
              },
              {
                "value": "public.plain-text",
                "label": "Plain text"
              },
              {
                "value": "public.html",
                "label": "HTML"
              },
              {
                "value": "public.xml",
                "label": "XML"
              },
              {
                "value": "com.adobe.pdf",
                "label": "PDF"
              },
              {
                "value": "public.vcard",
                "label": "vCard"
              }
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "run",
            "label": "Run shortcut",
            "fields": [
              "name",
              "input",
              "output",
              "output_type"
            ],
            "required": [
              "name"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "name",
              "input",
              "output",
              "output_type"
            ]
          }
        ]
      },
      {
        "path": [
          "list"
        ],
        "label": "List shortcuts",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/shortcuts.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "folder",
            "label": "Folder",
            "type": "string",
            "option": [
              "-f",
              "--folder-name"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "folders",
            "label": "List folders",
            "type": "boolean",
            "option": [
              "--folders"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "list",
            "label": "List shortcuts",
            "fields": [
              "folder"
            ],
            "required": []
          },
          {
            "id": "folders",
            "label": "List folders",
            "set": {
              "folders": [
                true
              ]
            },
            "fields": [
              "folders"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "folder",
              "folders"
            ]
          }
        ]
      }
    ]
  }
}
