id = "nl" name = "nl" description = "Number the lines of a file." executables = ["nl"] [commands] format = 1 label = "Number lines" description = "Add line numbers to files or standard input. Header and footer section styles are left out." quality = "ai-draft" base = "fig:nl" 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/nl.ts" license = "MIT" [[commands.field]] id = "files" label = "Files" type = "path" position = 0 multiple = true path = { kind = "file", role = "input", must_exist = true } sources = ["fig"] [[commands.field]] id = "body_type" label = "Body lines to number" type = "string" option = ["-b"] suggestions = [{ value = "a", label = "a" }, { value = "t", label = "t" }] sources = ["fig"] [[commands.field]] id = "format" label = "Number format" type = "string" option = ["-n"] suggestions = [{ value = "ln", label = "ln" }, { value = "rn", label = "rn" }, { value = "rz", label = "rz" }] sources = ["fig"] [[commands.field]] id = "width" label = "Number width" type = "integer" option = ["-w"] sources = ["fig"] [[commands.field]] id = "separator" label = "Separator" type = "string" option = ["-s"] sources = ["fig"] [[commands.field]] id = "start" label = "Start number" type = "integer" option = ["-v"] sources = ["fig"] [[commands.field]] id = "increment" label = "Increment" type = "integer" option = ["-i"] sources = ["fig"] [[commands.task]] id = "all-lines" label = "Number all lines" set = { body_type = ["a"] } fields = ["files", "body_type", "format", "width"] required = ["files"] [[commands.group]] id = "basic" label = "Basic" fields = ["files", "body_type", "format", "width", "separator", "start", "increment"]