Files
iris-context/commands/text/shasum.go
T
VERSE 2ef3c90819 feat(commands): more commands (#30)
- I wrote a scripts to copy and generate all commands missing in iris
from fig repo: https://github.com/withfig/autocomplete
- Add a new script to generate commands docs about which commands
currently are inside commands folder
377d4aac663590e504fe39a92eb4dac4cbd333b2
- Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
2026-07-04 22:08:36 +07:00

29 lines
1.3 KiB
Go

package text
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "shasum",
Description: "Print or Check SHA Checksums",
Options: []core.Option{
{Name: "-a", Description: "Select SHA algorithm"},
{Name: "-b", Description: "Read in binary mode"},
{Name: "-c", Description: "Read SHA sums from the FILEs and check them"},
{Name: "--tag", Description: "Create a BSD-style checksum"},
{Name: "-t", Description: "Read in text mode (default)"},
{Name: "-U", Description: "Read in Universal Newlines mode - produces same digest on Windows/Unix/Mac"},
{Name: "-0", Description: "Read in BITS mode - ASCII '0' as 0-bit, ASCII '1' as 1-bit, others ignored"},
{Name: "--ignore-missing", Description: "Don't fail or report status for missing files"},
{Name: "-q", Description: "Don't print OK for each successfully verified file"},
{Name: "-s", 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: "-h", Description: "Display help and exit"},
{Name: "-v", Description: "Output version information and exit"},
},
})
}