aboutsummaryrefslogtreecommitdiff
path: root/cmd_check.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd_check.go')
-rw-r--r--cmd_check.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/cmd_check.go b/cmd_check.go
index 2dfb786..bae501b 100644
--- a/cmd_check.go
+++ b/cmd_check.go
@@ -10,26 +10,26 @@ import (
// Usage: signify -C [-q] -p pubkey -x sigfile [file ...]
-type checkCommand struct {
+type checkCmd struct {
quiet bool
pubFile string
sigFile string
}
-func (c *checkCommand) Name() string { return "check" }
-func (c *checkCommand) Synopsis() string { return "check signatures" }
-func (c *checkCommand) Usage() string {
+func (m *checkCmd) Name() string { return "check" }
+func (m *checkCmd) Synopsis() string { return "check signatures" }
+func (m *checkCmd) Usage() string {
return "check [-q] -p pubkey -x sigfile [file ...]\n"
}
-func (c *checkCommand) SetFlags(f *flag.FlagSet) {
- f.BoolVar(&c.quiet, "q", false, "quiet mode")
- f.StringVar(&c.pubFile, "p", "", "public key file (required)")
- f.StringVar(&c.sigFile, "x", "", "signature file (required)")
+func (m *checkCmd) SetFlags(f *flag.FlagSet) {
+ f.BoolVar(&m.quiet, "q", false, "quiet mode")
+ f.StringVar(&m.pubFile, "p", "", "public key file (required)")
+ f.StringVar(&m.sigFile, "x", "", "signature file (required)")
}
-func (c *checkCommand) Execute(ctx context.Context, f *flag.FlagSet, args ...interface{}) subcommands.ExitStatus {
- if c.pubFile == "" || c.sigFile == "" {
+func (m *checkCmd) Execute(ctx context.Context, f *flag.FlagSet, args ...interface{}) subcommands.ExitStatus {
+ if m.pubFile == "" || m.sigFile == "" {
f.Usage()
return subcommands.ExitUsageError
}