(
qualifiedName QualifiedName,
blocking bool,
header bool,
response map[string]interface{},
outputStream io.Writer)
| 1166 | } |
| 1167 | |
| 1168 | func 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 | |
| 1192 | func printActionGetWithField(entityName string, field string, action *whisk.Action) { |
| 1193 | fmt.Fprintf( |
no test coverage detected