Assumes gohan client is called as follows: gohan client [common_params...] [action_input] [resource_id] where common_params are in form '--name value' and 'name' exists in commonParams action_input conforms to action's InputSchema specification resource_id is ID of the resource this action acts upon
(s *schema.Schema)
| 207 | // action_input conforms to action's InputSchema specification |
| 208 | // resource_id is ID of the resource this action acts upon |
| 209 | func (gohanClientCLI *GohanClientCLI) getCustomCommands(s *schema.Schema) []gohanCommand { |
| 210 | ret := make([]gohanCommand, 0, len(s.Actions)) |
| 211 | for _, act := range s.Actions { |
| 212 | ret = append(ret, gohanCommand{ |
| 213 | Name: s.ID + " " + act.ID, |
| 214 | Schema: s, |
| 215 | Action: gohanClientCLI.createActionFunc(act, s), |
| 216 | }) |
| 217 | } |
| 218 | return ret |
| 219 | } |
| 220 | |
| 221 | func (gohanClientCLI *GohanClientCLI) createActionFunc( |
| 222 | act schema.Action, |
no test coverage detected