(pkg *whisk.Package)
| 363 | } |
| 364 | |
| 365 | func printPackageSummary(pkg *whisk.Package) { |
| 366 | printEntitySummary(fmt.Sprintf("%7s", "package"), getFullName(pkg.Namespace, pkg.Name, ""), |
| 367 | getValueString(pkg.Annotations, "description"), |
| 368 | strings.Join(getParamUnion(pkg.Annotations, pkg.Parameters, "name"), ", ")) |
| 369 | |
| 370 | if pkg.Actions != nil { |
| 371 | for _, action := range pkg.Actions { |
| 372 | paramUnion := getParamUnion(action.Annotations, action.Parameters, "name") |
| 373 | printEntitySummary(fmt.Sprintf("%7s", "action"), getFullName(pkg.Namespace, pkg.Name, action.Name), |
| 374 | getValueString(action.Annotations, "description"), |
| 375 | strings.Join(paramUnion, ", ")) |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | if pkg.Feeds != nil { |
| 380 | for _, feed := range pkg.Feeds { |
| 381 | printEntitySummary(fmt.Sprintf("%7s", "feed "), getFullName(pkg.Namespace, pkg.Name, feed.Name), |
| 382 | getValueString(feed.Annotations, "description"), |
| 383 | strings.Join(getParamUnion(feed.Annotations, feed.Parameters, "name"), ", ")) |
| 384 | } |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | func printActionSummary(action *whisk.Action) { |
| 389 | paramUnion := getParamUnion(action.Annotations, action.Parameters, "name") |
no test coverage detected