(command Command)
| 534 | } |
| 535 | |
| 536 | func getCommandType(command Command) string { |
| 537 | typeVal, ok := command["type"] |
| 538 | if !ok { |
| 539 | return "" |
| 540 | } |
| 541 | typeStr, ok := typeVal.(string) |
| 542 | if !ok { |
| 543 | return "" |
| 544 | } |
| 545 | return typeStr |
| 546 | } |
| 547 | |
| 548 | func getCommandPath(command Command) []any { |
| 549 | pathVal, ok := command["path"] |
no outgoing calls
no test coverage detected