mdeuser commented on a change in pull request #2326: (Review) Alphabetize
URL:
https://github.com/apache/incubator-openwhisk/pull/2326#discussion_r125655288
##########
File path: tools/cli/go-whisk/whisk/util.go
##########
@@ -28,6 +28,15 @@ import (
"../wski18n"
)
+// Sortable items are anything that needs to be sorted, listed, and printed.
+type Sortable interface {
+ Compare(s Sortable) bool // Used for defining how to sort a Sortable
+}
+
+type Printable interface {
+ InfoToString() string // Defines what information to print for a
Sortable
Review comment:
`InfoToString` is a bit generic to me. Perhaps `ToSummaryRowString` or
something similar
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services