id = "fmt" name = "fmt" description = "Simple text formatter." executables = ["fmt"] [commands] format = 1 label = "Format text" description = "Reformat paragraphs of text files." quality = "ai-draft" base = "fig:fmt" 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/fmt.ts" license = "MIT" [[commands.field]] id = "files" label = "Files" type = "path" position = 0 multiple = true path = { kind = "file", role = "input" } sources = ["fig"] [[commands.field]] id = "center" label = "Center text" type = "boolean" option = ["-c"] sources = ["fig"] [[commands.field]] id = "indented" label = "Allow indented paragraphs" type = "boolean" option = ["-p"] sources = ["fig"] [[commands.field]] id = "squeeze" label = "Collapse whitespace" type = "boolean" option = ["-s"] sources = ["fig"] [[commands.field]] id = "tabs" label = "Tab stop width" type = "integer" option = ["-t"] sources = ["fig"] [[commands.task]] id = "format" label = "Format" fields = ["files", "indented", "squeeze"] required = [] [[commands.group]] id = "basic" label = "Basic" fields = ["files", "center", "indented", "squeeze", "tabs"]