id = "sha1sum" name = "sha1sum" description = "Print or check SHA1 (160-bit) checksums." executables = ["sha1sum"] [commands] format = 1 label = "Compute or verify SHA-1" description = "Print SHA-1 checksums of files, or verify them against a checksum list. Reads standard input when no file is given." quality = "ai-draft" base = "fig:sha1sum" 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/sha1sum.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 = "check" label = "Verify checksums" description = "Read sums from the files and check them." type = "boolean" option = ["-c", "--check"] sources = ["fig"] [[commands.field]] id = "binary" label = "Binary mode" type = "boolean" option = ["-b", "--binary"] sources = ["fig"] [[commands.field]] id = "tag" label = "BSD-style output" type = "boolean" option = ["--tag"] sources = ["fig"] [[commands.field]] id = "ignore_missing" label = "Ignore missing files" type = "boolean" option = ["--ignore-missing"] sources = ["fig"] [[commands.field]] id = "quiet" label = "Quiet" description = "Do not print OK for each verified file." type = "boolean" option = ["--quiet"] sources = ["fig"] [[commands.field]] id = "status" label = "Status only" type = "boolean" option = ["--status"] sources = ["fig"] [[commands.field]] id = "strict" label = "Strict" type = "boolean" option = ["--strict"] sources = ["fig"] [[commands.field]] id = "warn" label = "Warn on bad lines" type = "boolean" option = ["-w", "--warn"] sources = ["fig"] [[commands.task]] id = "compute" label = "Compute checksums" fields = ["files", "tag"] required = ["files"] [[commands.task]] id = "verify" label = "Verify a checksum file" set = { check = [true] } fields = ["files", "check", "quiet", "ignore_missing", "warn"] required = ["files"] [[commands.group]] id = "basic" label = "Basic" fields = ["files", "check", "tag", "ignore_missing", "quiet", "warn"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["binary", "status", "strict"]