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

Function printEntitySummary

commands/util.go:409–423  ·  view source on GitHub ↗
(entityType string, fullName string, description string, params string)

Source from the content-addressed store, hash-verified

407}
408
409func 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

Callers 3

printPackageSummaryFunction · 0.85
printActionSummaryFunction · 0.85
printTriggerSummaryFunction · 0.85

Calls 1

buildParamDescriptionFunction · 0.85

Tested by

no test coverage detected