id = "unzip" name = "unzip" description = "Extract and list files in ZIP archives." executables = ["unzip"] [commands] format = 1 label = "Extract ZIP archive" description = "Extract a ZIP archive, optionally into another directory, or list an archive's contents with the separate list field. Password and filter options are left out." quality = "ai-draft" base = "fig:unzip" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = true } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/unzip.ts" license = "MIT" [[commands.field]] id = "archive" label = "ZIP archive" type = "path" position = 0 path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.field]] id = "destination" label = "Extract into directory" type = "path" option = ["-d"] path = { kind = "directory", role = "output", must_exist = false } sources = ["fig"] [[commands.field]] id = "list" label = "List contents of archive" description = "Use instead of the extract fields." type = "path" option = ["-l"] path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.task]] id = "extract" label = "Extract" fields = ["archive", "destination"] required = ["archive"] [[commands.task]] id = "list" label = "List contents" fields = ["list"] required = ["list"] [[commands.group]] id = "basic" label = "Basic" fields = ["archive", "destination", "list"]