id = "seq" name = "seq" description = "Print sequences of numbers." executables = ["seq"] [commands] format = 1 label = "Print number sequence" description = "Print numbers from first to last. Give all three of first, step and last; the one-argument form is left out." quality = "ai-draft" base = "fig:seq" 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/seq.ts" license = "MIT" [[commands.field]] id = "first" label = "First number" type = "number" position = 0 sources = ["fig"] [[commands.field]] id = "step" label = "Step" type = "number" position = 1 sources = ["fig"] [[commands.field]] id = "last" label = "Last number" type = "number" position = 2 sources = ["fig"] [[commands.field]] id = "separator" label = "Separator" description = "String between numbers. Default is newline." type = "string" option = ["-s", "--separator"] sources = ["fig"] [[commands.field]] id = "fixed_width" label = "Equal width" description = "Pad numbers with zeros to equal width." type = "boolean" option = ["-w", "--fixed-width"] sources = ["fig"] [[commands.field]] id = "format" label = "printf format" type = "string" option = ["-f", "--format"] sources = ["fig"] [[commands.field]] id = "terminator" label = "Terminator" type = "string" option = ["-t", "--terminator"] sources = ["fig"] [[commands.task]] id = "range" label = "Number range" fields = ["first", "step", "last", "separator", "fixed_width"] required = ["first", "step", "last"] [[commands.group]] id = "basic" label = "Basic" fields = ["first", "step", "last", "separator", "fixed_width"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["format", "terminator"]