(audience string)
| 94 | } |
| 95 | |
| 96 | func validateAudience(audience string) error { |
| 97 | switch audience { |
| 98 | case "human", "agent": |
| 99 | return nil |
| 100 | default: |
| 101 | return fmt.Errorf("invalid --audience value %q: must be 'human' or 'agent'", audience) |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | func validateReviewOptions(opts *reviewOptions) error { |
| 106 | if err := validateDiffMode(opts.from, opts.to, opts.commit); err != nil { |
no outgoing calls
no test coverage detected