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 } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/shortcuts.ts" license = "MIT" [[commands.subcommand]] path = ["run"] label = "Run a shortcut" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/shortcuts.ts" license = "MIT" [[commands.subcommand.field]] id = "name" label = "Shortcut name" type = "string" position = 0 sources = ["fig"] [[commands.subcommand.field]] id = "input" label = "Input file" type = "path" option = ["-i", "--input-path"] path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.subcommand.field]] id = "output" label = "Output file" type = "path" option = ["-o", "--output-path"] path = { kind = "file", role = "output", must_exist = false } effect = "overwrite" sources = ["fig"] [[commands.subcommand.field]] 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"] [[commands.subcommand.task]] id = "run" label = "Run shortcut" fields = ["name", "input", "output", "output_type"] required = ["name"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["name", "input", "output", "output_type"] [[commands.subcommand]] path = ["list"] label = "List shortcuts" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/shortcuts.ts" license = "MIT" [[commands.subcommand.field]] id = "folder" label = "Folder" type = "string" option = ["-f", "--folder-name"] sources = ["fig"] [[commands.subcommand.field]] id = "folders" label = "List folders" type = "boolean" option = ["--folders"] sources = ["fig"] [[commands.subcommand.task]] id = "list" label = "List shortcuts" fields = ["folder"] required = [] [[commands.subcommand.task]] id = "folders" label = "List folders" set = { folders = [true] } fields = ["folders"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["folder", "folders"]