| 294 | } |
| 295 | |
| 296 | type ParameterMetadata struct { |
| 297 | Name string `json:"name"` |
| 298 | Description string `json:"description"` |
| 299 | Required bool `json:"required"` |
| 300 | Type string `json:"type"` |
| 301 | Default string `json:"default,omitempty"` |
| 302 | } |
| 303 | |
| 304 | func (c CommandMetadata) GetParameter(paramName string) (ParameterMetadata, bool) { |
| 305 | for _, p := range c.Parameters { |
nothing calls this directly
no outgoing calls
no test coverage detected