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

Function printProperty

commands/property.go:542–558  ·  view source on GitHub ↗
(propertyName string, displayText string, formatType string, format ...string)

Source from the content-addressed store, hash-verified

540}
541
542func printProperty(propertyName string, displayText string, formatType string, format ...string) {
543 switch formatType {
544 case "std":
545 if len(format) > 0 {
546 fmt.Fprintf(color.Output, format[0], wski18n.T(displayText), boldString(propertyName))
547 break
548 }
549 fmt.Fprintf(color.Output, "%s\t\t%s\n", wski18n.T(displayText), boldString(propertyName))
550 break
551 case "raw":
552 fmt.Fprintf(color.Output, "%s\n", boldString(propertyName))
553 break
554 default:
555 // In case of any other type for now print in std format.
556 fmt.Fprintf(color.Output, "%s\t\t%s\n", wski18n.T(displayText), boldString(propertyName))
557 }
558}
559
560func getNamespace() string {
561 var namespaces, _, err = Client.Namespaces.List()

Callers 1

property.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected