NewValidateCommand - creates a new validate command
()
| 31 | |
| 32 | // NewValidateCommand - creates a new validate command |
| 33 | func NewValidateCommand() *cobra.Command { |
| 34 | command := &cobra.Command{ |
| 35 | Use: "validate <file>", |
| 36 | Short: "validate authorization model with assertions", |
| 37 | RunE: validate(), |
| 38 | Args: cobra.ExactArgs(1), |
| 39 | } |
| 40 | |
| 41 | return command |
| 42 | } |
| 43 | |
| 44 | // ErrList - error list |
| 45 | type ErrList struct { |