SEBA-704 implement sorting
Change-Id: Ic790b01b36d6bad9f79e064bc04f77a22ddfd396
diff --git a/commands/services.go b/commands/services.go
index e46dac6..e4a11cf 100644
--- a/commands/services.go
+++ b/commands/services.go
@@ -28,7 +28,7 @@
)
type ServiceList struct {
- OutputOptions
+ ListOutputOptions
}
type ServiceListOutput struct {
@@ -88,7 +88,7 @@
data[i].State = val.GetFieldByName("state").(string)
}
- FormatAndGenerateOutput(&options.OutputOptions, DEFAULT_SERVICE_FORMAT, "{{.Name}}", data)
+ FormatAndGenerateListOutput(&options.ListOutputOptions, DEFAULT_SERVICE_FORMAT, "{{.Name}}", data)
return nil
}