Linter and Drone config fixes, code linting.
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
package clientv1
|
||||
|
||||
import (
|
||||
// stdlib
|
||||
"strings"
|
||||
|
||||
// local
|
||||
"go.dev.pztrn.name/giredore/internal/requester"
|
||||
"go.dev.pztrn.name/giredore/internal/structs"
|
||||
)
|
||||
|
@@ -1,17 +1,12 @@
|
||||
package clientv1
|
||||
|
||||
import (
|
||||
// local
|
||||
"github.com/rs/zerolog"
|
||||
"go.dev.pztrn.name/giredore/internal/logger"
|
||||
"go.dev.pztrn.name/giredore/internal/requester"
|
||||
|
||||
// other
|
||||
"github.com/rs/zerolog"
|
||||
)
|
||||
|
||||
var (
|
||||
log zerolog.Logger
|
||||
)
|
||||
var log zerolog.Logger
|
||||
|
||||
func Initialize() {
|
||||
log = logger.Logger.With().Str("type", "domain").Str("package", "client").Int("version", 1).Logger()
|
||||
|
@@ -1,10 +1,8 @@
|
||||
package clientv1
|
||||
|
||||
import (
|
||||
// stdlib
|
||||
"strings"
|
||||
|
||||
// local
|
||||
"go.dev.pztrn.name/giredore/internal/requester"
|
||||
"go.dev.pztrn.name/giredore/internal/structs"
|
||||
)
|
||||
@@ -29,6 +27,7 @@ func DeletePackage(args []string, options map[string]string) {
|
||||
func GetPackages(args []string, options map[string]string) {
|
||||
pkgs := strings.Split(args[0], ",")
|
||||
|
||||
// nolint:exhaustivestruct
|
||||
req := &structs.PackageGetRequest{}
|
||||
if pkgs[0] == "all" {
|
||||
req.All = true
|
||||
|
Reference in New Issue
Block a user