MCPcopy Create free account
hub / github.com/cli/cli / AreFlagsValid

Method AreFlagsValid

pkg/cmd/attestation/download/options.go:30–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30func (opts *Options) AreFlagsValid() error {
31 // Check that limit is between 1 and 1000
32 if opts.Limit < minLimit || opts.Limit > maxLimit {
33 return fmt.Errorf("limit %d not allowed, must be between %d and %d", opts.Limit, minLimit, maxLimit)
34 }
35
36 return nil
37}

Callers 2

TestAreFlagsValidFunction · 0.95
NewDownloadCmdFunction · 0.95

Calls 1

ErrorfMethod · 0.65

Tested by 1

TestAreFlagsValidFunction · 0.76