dubeejw commented on a change in pull request #2326: (Review) Alphabetize
URL:
https://github.com/apache/incubator-openwhisk/pull/2326#discussion_r125914606
##########
File path: tools/cli/go-whisk-cli/commands/api.go
##########
@@ -407,18 +411,21 @@ var apiListCmd = &cobra.Command{
// Cast to a common type to allow for code to print out apilist
response or apiget response
retApiArray = (*whisk.RetApiArray)(retApi)
}
-
+ // Checks for any sort flags being passed
+ if flags.api.sortAction {
+ sortAlg = sortActionFlag
+ }
// Display the APIs - applying any specified filtering
if (flags.common.full) {
fmt.Fprintf(color.Output,
wski18n.T("{{.ok}} APIs\n",
map[string]interface{}{
"ok": color.GreenString("ok:"),
}))
-
- for i:=0; i<len(retApiArray.Apis); i++ {
- printFilteredListApi(retApiArray.Apis[i].ApiValue,
(*whisk.ApiOptions)(apiGetReqOptions))
+ for i := 0; i<len(retApiArray.Apis); i++ {
Review comment:
Spaces needed: `i < len(`.
----------------------------------------------------------------
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