You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/07/05 15:27:20 UTC
[GitHub] mdeuser commented on a change in pull request #2326: (Review) Alphabetize
mdeuser commented on a change in pull request #2326: (Review) Alphabetize
URL: https://github.com/apache/incubator-openwhisk/pull/2326#discussion_r125633357
##########
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:
Is there a particular output format that's expected to be produced by this function? If so, a comment here would help direct future implementations of this interface
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services