id = "unix2dos" name = "unix2dos" description = "Convert text files from Unix to DOS line endings." executables = ["unix2dos"] [commands] format = 1 label = "Convert to DOS line endings" description = "Convert files in place from Unix to DOS line breaks. New-file mode, code page and UTF-16 options are left out." quality = "ai-draft" base = "fig:unix2dos" 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/unix2dos.ts" license = "MIT" [[commands.field]] id = "files" label = "Files" description = "Files are overwritten in place." type = "path" position = 0 multiple = true path = { kind = "file", role = "input", must_exist = true } effect = "overwrite" sources = ["fig"] [[commands.field]] id = "keepdate" label = "Keep original timestamp" type = "boolean" option = ["-k", "--keepdate"] sources = ["fig"] [[commands.field]] id = "quiet" label = "Quiet" type = "boolean" option = ["-q", "--quiet"] sources = ["fig"] [[commands.field]] id = "force" label = "Convert binary files too" type = "boolean" option = ["-f", "--force"] sources = ["fig"] [[commands.field]] id = "add_bom" label = "Write a UTF-8 BOM" type = "boolean" option = ["-m", "--add-bom"] sources = ["fig"] [[commands.task]] id = "convert" label = "Convert files" fields = ["files", "keepdate", "quiet"] required = ["files"] [[commands.group]] id = "basic" label = "Basic" fields = ["files", "keepdate", "quiet"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["force", "add_bom"]