id = "head" name = "head" description = "Output the first part of files." executables = ["head"] [commands] format = 1 label = "Show start of files" description = "Print the first lines or bytes of one or more files." quality = "ai-draft" base = "fig:head" 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/head.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 = "lines" label = "Lines" description = "Print this many lines instead of 10." type = "integer" option = ["--lines", "-n"] sources = ["fig"] [[commands.field]] id = "bytes" label = "Bytes" description = "Print this many bytes of each file." type = "integer" option = ["--bytes", "-c"] sources = ["fig"] [[commands.field]] id = "quiet" label = "No headers" description = "Never print headers giving file names." type = "boolean" option = ["--quiet", "--silent", "-q"] sources = ["fig"] [[commands.field]] id = "verbose" label = "Always headers" type = "boolean" option = ["--verbose", "-v"] sources = ["fig"] [[commands.task]] id = "lines" label = "First lines" fields = ["files", "lines"] required = ["files"] [[commands.task]] id = "bytes" label = "First bytes" fields = ["files", "bytes"] required = ["files", "bytes"] [[commands.group]] id = "basic" label = "Basic" fields = ["files", "lines", "bytes"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["quiet", "verbose"]