MCPcopy Create free account
hub / github.com/apache/openwhisk-cli / printInvocationResponse

Function printInvocationResponse

commands/action.go:213–230  ·  view source on GitHub ↗
(
	qualifiedName QualifiedName,
	blocking bool,
	header bool,
	result map[string]interface{},
	err error)

Source from the content-addressed store, hash-verified

211}
212
213func printInvocationResponse(
214 qualifiedName QualifiedName,
215 blocking bool,
216 header bool,
217 result map[string]interface{},
218 err error) error {
219 if err == nil {
220 printInvocationMsg(qualifiedName, blocking, header, result, color.Output)
221 } else {
222 if !blocking {
223 return handleInvocationError(err, qualifiedName.GetEntityName())
224 } else {
225 return printFailedBlockingInvocationResponse(qualifiedName, header, result, err)
226 }
227 }
228
229 return err
230}
231
232func printFailedBlockingInvocationResponse(
233 qualifiedName QualifiedName,

Callers 2

configureFeedFunction · 0.85
action.goFile · 0.85

Calls 4

printInvocationMsgFunction · 0.85
handleInvocationErrorFunction · 0.85
GetEntityNameMethod · 0.80

Tested by

no test coverage detected