id = "shasum" name = "shasum" description = "Print or check SHA checksums." executables = ["shasum"] [commands] format = 1 label = "Compute or verify SHA checksums" description = "Print SHA checksums of files, or verify them against a checksum list. Reads standard input when no file is given." quality = "ai-draft" base = "fig:shasum" 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/shasum.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 = "algorithm" label = "Algorithm" type = "string" option = ["-a", "--algorithm"] suggestions = [{ value = "1", label = "SHA-1" }, { value = "224", label = "SHA-224" }, { value = "256", label = "SHA-256" }, { value = "384", label = "SHA-384" }, { value = "512", label = "SHA-512" }] sources = ["fig"] [[commands.field]] id = "check" label = "Verify checksums" 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" type = "boolean" option = ["-q", "--quiet"] sources = ["fig"] [[commands.field]] id = "status" label = "Status only" type = "boolean" option = ["-s", "--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 = "sha256" label = "SHA-256 of files" set = { algorithm = ["256"] } fields = ["files", "algorithm", "tag"] required = ["files"] [[commands.task]] id = "verify" label = "Verify a checksum file" set = { check = [true] } fields = ["files", "algorithm", "check", "quiet", "ignore_missing"] required = ["files"] [[commands.group]] id = "basic" label = "Basic" fields = ["files", "algorithm", "check", "tag", "ignore_missing", "quiet"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["binary", "status", "strict", "warn"]