From 7540ba4afc02e0fab49cedfe692954e99be0c38b Mon Sep 17 00:00:00 2001 From: omissis Date: Tue, 16 Aug 2022 19:00:12 +0200 Subject: [PATCH] fix: move verify command func to the correct file --- cmd/common.go | 5 ----- cmd/verify.go | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cmd/common.go b/cmd/common.go index 66ac155..292396e 100644 --- a/cmd/common.go +++ b/cmd/common.go @@ -6,7 +6,6 @@ import ( "path/filepath" "strings" - "github.com/mitchellh/cli" "golang.org/x/exp/slices" "gopkg.in/yaml.v3" ) @@ -23,10 +22,6 @@ func (i *configFiles) Set(value string) error { return nil } -func VerifyFactory() (cli.Command, error) { - return &verifyCommand{}, nil -} - func getWd() string { cwd, err := os.Getwd() if err != nil { diff --git a/cmd/verify.go b/cmd/verify.go index 0de9ebd..db3c2cf 100644 --- a/cmd/verify.go +++ b/cmd/verify.go @@ -7,8 +7,14 @@ import ( "log" "os" "path/filepath" + + "github.com/mitchellh/cli" ) +func VerifyFactory() (cli.Command, error) { + return &verifyCommand{}, nil +} + type verifyCommand struct { configFiles configFiles output string