cmd/list.go | 7 +++++++ diff --git a/cmd/list.go b/cmd/list.go index cf8fae2b160be2c77726c5e1e63d690343eba1b464c2b26cdc09949132e3b8a9..605af89954cbef8144b69a6c6ab83c1878969eee2326e91dd28cb84ab24df3bc 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -29,6 +29,7 @@ ) func runList() { doSize := flag.Bool("size", false, "Print file's size") + doHashes := flag.Bool("hashes", false, "Print file's hashes") doSig := flag.Bool("sig", false, "Extract signature files") flag.Usage = func() { fmt.Fprintf(flag.CommandLine.Output(), @@ -99,6 +100,12 @@ continue } if *doSize { fmt.Println(f.Size) + break + } + if *doHashes { + for _, h := range f.Hashes { + fmt.Println(h.Type, h.Hash) + } break } for _, u := range f.URLs {