(id string)
| 287 | } |
| 288 | |
| 289 | func (gohanClientCLI *GohanClientCLI) getSchemaByID(id string) (*schema.Schema, error) { |
| 290 | for _, s := range gohanClientCLI.schemas { |
| 291 | if s.ID == id { |
| 292 | return s, nil |
| 293 | } |
| 294 | } |
| 295 | return nil, fmt.Errorf("Schema with ID '%s' not found", id) |
| 296 | } |
| 297 | |
| 298 | func (gohanClientCLI *GohanClientCLI) logRequest(method, url, tokenID string, args map[string]interface{}) { |
| 299 | log.Notice("Sent request: %s %s", method, url) |
no test coverage detected