id = "tee" name = "tee" description = "Reads standard input and copies it to standard output and to files." executables = ["tee"] [commands] format = 1 label = "Duplicate input to files" description = "Copy piped input to one or more files while still printing it. Only the append and ignore-interrupt options are included." quality = "ai-draft" base = "fig:tee" 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/tee.ts" license = "MIT" [[commands.field]] id = "append" label = "Append" description = "Append to the files instead of overwriting them." type = "boolean" option = ["-a"] sources = ["fig"] [[commands.field]] id = "ignore_interrupt" label = "Ignore SIGINT" type = "boolean" option = ["-i"] sources = ["fig"] [[commands.field]] id = "files" label = "Output files" description = "Existing files are overwritten unless Append is on." type = "path" position = 0 multiple = true path = { kind = "file", role = "output" } effect = "overwrite" sources = ["fig"] [[commands.task]] id = "write" label = "Write to files" fields = ["files", "ignore_interrupt"] required = ["files"] [[commands.task]] id = "append" label = "Append to files" set = { append = [true] } fields = ["files", "append", "ignore_interrupt"] required = ["files"] [[commands.group]] id = "basic" label = "Basic" fields = ["files", "append", "ignore_interrupt"]