id = "tac" name = "tac" description = "Concatenate and print files in reverse." executables = ["tac"] platforms = ["linux"] [commands] format = 1 label = "Print files in reverse" description = "Print files with lines (or a custom separator) in reverse order." quality = "ai-draft" base = "fig:tac" 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/tac.ts" license = "MIT" [[commands.field]] id = "before" label = "Separator before" type = "boolean" option = ["--before", "-b"] sources = ["fig"] [[commands.field]] id = "regex" label = "Separator is a regex" type = "boolean" option = ["--regex", "-r"] sources = ["fig"] [[commands.field]] id = "separator" label = "Separator" type = "string" option = ["--separator", "-s"] sources = ["fig"] [[commands.field]] id = "files" label = "Files" type = "path" path = { kind = "file", role = "input" } position = 0 multiple = true sources = ["fig"] [[commands.task]] id = "reverse" label = "Reverse lines" fields = ["files"] required = ["files"] [[commands.group]] id = "basic" label = "Basic" fields = ["files", "separator", "before", "regex"]