(
qualifiedName QualifiedName,
header bool,
result map[string]interface{},
err error)
| 230 | } |
| 231 | |
| 232 | func printFailedBlockingInvocationResponse( |
| 233 | qualifiedName QualifiedName, |
| 234 | header bool, |
| 235 | result map[string]interface{}, |
| 236 | err error) error { |
| 237 | if isBlockingTimeout(err) { |
| 238 | printBlockingTimeoutMsg( |
| 239 | qualifiedName.GetNamespace(), |
| 240 | qualifiedName.GetEntityName(), |
| 241 | getValueFromJSONResponse(ACTIVATION_ID, result)) |
| 242 | return err |
| 243 | } else if isApplicationError(err) { |
| 244 | printInvocationMsg( |
| 245 | qualifiedName, |
| 246 | true, |
| 247 | header, |
| 248 | result, |
| 249 | colorable.NewColorableStderr()) |
| 250 | return err |
| 251 | } else { |
| 252 | return handleInvocationError(err, qualifiedName.GetEntityName()) |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | var actionGetCmd = &cobra.Command{ |
| 257 | Use: "get ACTION_NAME [FIELD_FILTER | --summary | --url]", |
no test coverage detected