(command Command)
| 546 | } |
| 547 | |
| 548 | func getCommandPath(command Command) []any { |
| 549 | pathVal, ok := command["path"] |
| 550 | if !ok { |
| 551 | return nil |
| 552 | } |
| 553 | path, ok := pathVal.([]any) |
| 554 | if !ok { |
| 555 | return nil |
| 556 | } |
| 557 | return path |
| 558 | } |
| 559 | |
| 560 | func ValidatePath(path any) error { |
| 561 | if path == nil { |
no outgoing calls
no test coverage detected