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

Function printInvocationMsg

commands/action.go:1168–1190  ·  view source on GitHub ↗
(
	qualifiedName QualifiedName,
	blocking bool,
	header bool,
	response map[string]interface{},
	outputStream io.Writer)

Source from the content-addressed store, hash-verified

1166}
1167
1168func printInvocationMsg(
1169 qualifiedName QualifiedName,
1170 blocking bool,
1171 header bool,
1172 response map[string]interface{},
1173 outputStream io.Writer) {
1174 if header {
1175 fmt.Fprintf(
1176 outputStream,
1177 wski18n.T(
1178 "{{.ok}} invoked /{{.namespace}}/{{.name}} with id {{.id}}\n",
1179 map[string]interface{}{
1180 "ok": color.GreenString("ok:"),
1181 "namespace": boldString(qualifiedName.GetNamespace()),
1182 "name": boldString(qualifiedName.GetEntityName()),
1183 "id": boldString(getValueFromJSONResponse(ACTIVATION_ID, response)),
1184 }))
1185 }
1186
1187 if blocking {
1188 printJSON(response, outputStream)
1189 }
1190}
1191
1192func printActionGetWithField(entityName string, field string, action *whisk.Action) {
1193 fmt.Fprintf(

Callers 4

CreateMethod · 0.85
CreateExtendedVersionFunction · 0.85
printInvocationResponseFunction · 0.85

Calls 4

getValueFromJSONResponseFunction · 0.85
printJSONFunction · 0.85
GetNamespaceMethod · 0.80
GetEntityNameMethod · 0.80

Tested by

no test coverage detected