(entityType string, fullName string, description string, params string)
| 407 | } |
| 408 | |
| 409 | func printEntitySummary(entityType string, fullName string, description string, params string) { |
| 410 | emptyParams := "none defined" |
| 411 | if len(params) <= 0 { |
| 412 | params = emptyParams |
| 413 | } |
| 414 | if len(description) > 0 { |
| 415 | fmt.Fprintf(color.Output, "%s %s: %s\n", boldString(entityType), fullName, description) |
| 416 | } else if params != emptyParams { |
| 417 | descriptionFromParams := buildParamDescription(params) |
| 418 | fmt.Fprintf(color.Output, "%s %s: %s\n", boldString(entityType), fullName, descriptionFromParams) |
| 419 | } else { |
| 420 | fmt.Fprintf(color.Output, "%s %s\n", boldString(entityType), fullName) |
| 421 | } |
| 422 | fmt.Fprintf(color.Output, " (%s: %s)\n", boldString(wski18n.T("parameters")), params) |
| 423 | } |
| 424 | |
| 425 | // getParamUnion(keyValArrAnnots, keyValArrParams, key) returns the union |
| 426 | // of parameters listed under annotations (keyValArrAnnots, using key) and |
no test coverage detected