id = "xdg-mime" name = "xdg-mime" description = "Queries and sets file type associations on Linux desktops." executables = ["xdg-mime"] platforms = ["linux"] [commands] format = 1 label = "File type associations" description = "Query or set the default application for a MIME type." quality = "ai-draft" base = "fig:xdg-mime" 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/xdg-mime.ts" license = "MIT" [[commands.subcommand]] path = ["query"] label = "Query file type info" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/xdg-mime.ts" license = "MIT" [[commands.subcommand.field]] id = "what" label = "Query" description = "Use `filetype ` or `default `." type = "string" position = 0 multiple = true min = 1 sources = ["fig"] [[commands.subcommand.task]] id = "query" label = "Query" fields = ["what"] required = ["what"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["what"] [[commands.subcommand]] path = ["default"] label = "Set default application" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/xdg-mime.ts" license = "MIT" [[commands.subcommand.field]] id = "application" label = "Application (.desktop file)" type = "string" position = 0 min = 1 sources = ["fig"] [[commands.subcommand.field]] id = "mimetypes" label = "MIME types" type = "string" position = 1 multiple = true min = 1 effect = "overwrite" sources = ["fig"] [[commands.subcommand.task]] id = "default" label = "Set default" fields = ["application", "mimetypes"] required = ["application", "mimetypes"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["application", "mimetypes"]