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

Function toPrintable

commands/util.go:181–187  ·  view source on GitHub ↗
(sortable []whisk.Sortable)

Source from the content-addressed store, hash-verified

179func Swap(sortables Sortables, i, j int) { sortables[i], sortables[j] = sortables[j], sortables[i] }
180
181func toPrintable(sortable []whisk.Sortable) []whisk.Printable {
182 sortedPrintable := make([]whisk.Printable, len(sortable), len(sortable))
183 for i := range sortable {
184 sortedPrintable[i] = sortable[i].(whisk.Printable)
185 }
186 return sortedPrintable
187}
188
189// Prints the parameters/list for wsk xxxx list
190// Identifies type and then copies array into an array of interfaces(Sortable) to be sorted and printed

Callers 1

printListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected