GetActionFromCommand gets action with given id
(command string)
| 668 | |
| 669 | // GetActionFromCommand gets action with given id |
| 670 | func (schema *Schema) GetActionFromCommand(command string) *Action { |
| 671 | for _, action := range schema.Actions { |
| 672 | if action.ID == command { |
| 673 | return &action |
| 674 | } |
| 675 | } |
| 676 | return nil |
| 677 | } |
no outgoing calls
no test coverage detected