diff --git a/.golangci.yml b/.golangci.yml index 6adafc9a..d99eab87 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -75,6 +75,7 @@ linters: - nilerr - reassign - whitespace + - copyloopvar enable-all: false disable-all: true diff --git a/cmd/get/server.go b/cmd/get/server.go index 1105719e..ec15bd79 100644 --- a/cmd/get/server.go +++ b/cmd/get/server.go @@ -89,7 +89,6 @@ func printComponent(components []*rt.Component, slug string) { got := []*rt.Component{} for _, c := range components { - c := c if strings.EqualFold(slug, c.Name) { got = append(got, c) } diff --git a/cmd/list/server.go b/cmd/list/server.go index a4174c9b..94617b68 100644 --- a/cmd/list/server.go +++ b/cmd/list/server.go @@ -57,7 +57,7 @@ var cmdListServer = &cobra.Command{ PaginationParams{ Limit: flagsListServer.limit, Page: flagsListServer.page, - Preload: false, + Preload: true, OrderBy: "", }, } @@ -94,7 +94,6 @@ var cmdListServer = &cobra.Command{ rtServers := make([]*rt.Server, 0, len(servers)) for _, s := range servers { - s := s rtServers = append(rtServers, rfleetdb.ConvertServer(&s)) } diff --git a/go.mod b/go.mod index 840a9205..9c0c79cf 100644 --- a/go.mod +++ b/go.mod @@ -29,6 +29,7 @@ require ( ) require ( + github.com/alessio/shellescape v1.4.2 // indirect github.com/banzaicloud/logrus-runtime-formatter v0.0.0-20190729070250-5ae5475bae5e // indirect github.com/beorn7/perks v1.0.1 // indirect