Files
iris-context/commands/text/sha1sum.go
T
VERSE ebde9ba68f refactor(commands): separate commands and its core into two folders (#32)
- I think it would be better if one for commands only, one for the spec
handling core logic so people won't be confused by the core logic inside
the commands folder (cleaner I guess)
- Regen docs
2026-07-05 11:27:30 +07:00

27 lines
1.1 KiB
Go

package text
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "sha1sum",
Description: "Print or check SHA1 (160-bit) checksums",
Options: []spec.Option{
{Name: "-b", Description: "Read in binary mode"},
{Name: "-c", Description: "Read SHA1 sums from the FILEs and check them"},
{Name: "--tag", Description: "Create a BSD-style checksum"},
{Name: "-t", Description: "Read in text mode (default)"},
{Name: "-z", Description: "End each output line with NUL, not newline, and disable file name escaping"},
{Name: "--ignore-missing", Description: "Don't fail or report status for missing files"},
{Name: "--quiet", Description: "Don't print OK for each successfully verified file"},
{Name: "--status", Description: "Don't output anything, status code shows success"},
{Name: "--strict", Description: "Exit non-zero for improperly formatted checksum lines"},
{Name: "-w", Description: "Warn about improperly formatted checksum lines"},
{Name: "--help", Description: "Output help message and exit"},
{Name: "--version", Description: "Output version information and exit"},
},
})
}