()
| 691 | } |
| 692 | |
| 693 | func (o *validateOpts) Validate() error { |
| 694 | if o.DatabaseURL == "" && !pgEnvConfigured() { |
| 695 | return errors.New("either PG* env vars or --database-url must be set") |
| 696 | } |
| 697 | |
| 698 | return nil |
| 699 | } |
| 700 | |
| 701 | type validate struct { |
| 702 | CommandBase |
nothing calls this directly
no test coverage detected