id = "dos2unix" name = "dos2unix" description = "Convert text files between DOS and Unix line endings." executables = ["dos2unix"] [commands] format = 1 label = "Convert line endings" description = "Convert DOS (CRLF) line endings to Unix in place, or write to a new file. Code-page switches are left out." quality = "ai-draft" base = "fig:dos2unix" 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/dos2unix.ts" license = "MIT" [[commands.field]] id = "files" label = "Files" type = "path" path = { kind = "file", role = "input" } position = 0 multiple = true effect = "overwrite" sources = ["fig"] [[commands.field]] id = "keepdate" label = "Keep the 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"] effect = "overwrite" sources = ["fig"] [[commands.field]] id = "keep_bom" label = "Keep byte order mark" type = "boolean" option = ["-b", "--keep-bom"] sources = ["fig"] [[commands.field]] id = "remove_bom" label = "Remove byte order mark" type = "boolean" option = ["-r", "--remove-bom"] sources = ["fig"] [[commands.field]] id = "verbose" label = "Verbose" type = "boolean" option = ["-v", "--verbose"] sources = ["fig"] [[commands.task]] id = "in-place" label = "Convert files in place" fields = ["files", "keepdate", "verbose"] required = ["files"] [[commands.task]] id = "strip-bom" label = "Convert and remove BOM" set = { remove_bom = [true] } fields = ["files", "remove_bom", "keepdate"] required = ["files"] [[commands.group]] id = "basic" label = "Basic" fields = ["files", "keepdate", "verbose", "quiet"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["force", "keep_bom", "remove_bom"]