diff --git a/cmd/generate/generate.go b/cmd/generate/generate.go index 2ee3f78..39640d5 100644 --- a/cmd/generate/generate.go +++ b/cmd/generate/generate.go @@ -1,9 +1,9 @@ package generate import ( - "codegen/cmd/generate/golang" - "codegen/cmd/generate/react" - "codegen/internal/flagkeys" + "github.com/open-feature/cli/cmd/generate/golang" + "github.com/open-feature/cli/cmd/generate/react" + "github.com/open-feature/cli/internal/flagkeys" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/cmd/generate/generate_test.go b/cmd/generate/generate_test.go index 6aec68b..9db8415 100644 --- a/cmd/generate/generate_test.go +++ b/cmd/generate/generate_test.go @@ -1,11 +1,12 @@ package generate import ( - "codegen/internal/flagkeys" "os" "path/filepath" "testing" + "github.com/open-feature/cli/internal/flagkeys" + "github.com/google/go-cmp/cmp" "github.com/spf13/afero" diff --git a/cmd/generate/golang/golang.go b/cmd/generate/golang/golang.go index 2fdd9b4..76e5b5f 100644 --- a/cmd/generate/golang/golang.go +++ b/cmd/generate/golang/golang.go @@ -1,9 +1,9 @@ package golang import ( - "codegen/internal/flagkeys" - "codegen/internal/generate" - "codegen/internal/generate/plugins/golang" + "github.com/open-feature/cli/internal/flagkeys" + "github.com/open-feature/cli/internal/generate" + "github.com/open-feature/cli/internal/generate/plugins/golang" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/cmd/generate/react/react.go b/cmd/generate/react/react.go index 02450b0..9ef2239 100644 --- a/cmd/generate/react/react.go +++ b/cmd/generate/react/react.go @@ -1,8 +1,8 @@ package react import ( - "codegen/internal/generate" - "codegen/internal/generate/plugins/react" + "github.com/open-feature/cli/internal/generate" + "github.com/open-feature/cli/internal/generate/plugins/react" "github.com/spf13/cobra" ) diff --git a/cmd/root.go b/cmd/root.go index dc5f25c..c30fa50 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "codegen/cmd/generate" + "github.com/open-feature/cli/cmd/generate" "github.com/spf13/cobra" ) diff --git a/docs/schema/v0/flagmanifest.go b/docs/schema/v0/flagmanifest.go index f43e02f..dd66f32 100644 --- a/docs/schema/v0/flagmanifest.go +++ b/docs/schema/v0/flagmanifest.go @@ -9,4 +9,4 @@ import _ "embed" var Schema string // SchemaPath proviees the current path and version of flag manifest. -const SchemaPath = "codegen/docs/schema/v0/flag_manifest.json" +const SchemaPath = "github.com/open-feature/cli/docs/schema/v0/flag_manifest.json" diff --git a/go.mod b/go.mod index 97d9d17..76e01d1 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module codegen +module github.com/open-feature/cli go 1.22.5 diff --git a/internal/filesystem/filesystem.go b/internal/filesystem/filesystem.go index b2e8e6a..fdab105 100644 --- a/internal/filesystem/filesystem.go +++ b/internal/filesystem/filesystem.go @@ -2,7 +2,7 @@ package filesystem import ( - "codegen/internal/flagkeys" + "github.com/open-feature/cli/internal/flagkeys" "github.com/spf13/afero" "github.com/spf13/viper" diff --git a/internal/generate/generate.go b/internal/generate/generate.go index e92d2c5..382d320 100644 --- a/internal/generate/generate.go +++ b/internal/generate/generate.go @@ -3,15 +3,16 @@ package generate import ( "bytes" - "codegen/internal/filesystem" - "codegen/internal/flagkeys" - "codegen/internal/generate/manifestutils" - "codegen/internal/generate/types" "fmt" "path" "path/filepath" "text/template" + "github.com/open-feature/cli/internal/filesystem" + "github.com/open-feature/cli/internal/flagkeys" + "github.com/open-feature/cli/internal/generate/manifestutils" + "github.com/open-feature/cli/internal/generate/types" + "github.com/spf13/viper" ) diff --git a/internal/generate/manifestutils/manifestutils.go b/internal/generate/manifestutils/manifestutils.go index 3ef464d..35f6aa9 100644 --- a/internal/generate/manifestutils/manifestutils.go +++ b/internal/generate/manifestutils/manifestutils.go @@ -2,15 +2,16 @@ package manifestutils import ( - flagmanifest "codegen/docs/schema/v0" - "codegen/internal/filesystem" - "codegen/internal/flagkeys" - "codegen/internal/generate/types" "encoding/json" "fmt" "sort" "strconv" + flagmanifest "github.com/open-feature/cli/docs/schema/v0" + "github.com/open-feature/cli/internal/filesystem" + "github.com/open-feature/cli/internal/flagkeys" + "github.com/open-feature/cli/internal/generate/types" + "github.com/santhosh-tekuri/jsonschema/v5" "github.com/spf13/afero" "github.com/spf13/viper" diff --git a/internal/generate/plugins/golang/golang.go b/internal/generate/plugins/golang/golang.go index c373ef5..e1ae860 100644 --- a/internal/generate/plugins/golang/golang.go +++ b/internal/generate/plugins/golang/golang.go @@ -6,8 +6,8 @@ import ( "strconv" "text/template" - "codegen/internal/generate" - "codegen/internal/generate/types" + "github.com/open-feature/cli/internal/generate" + "github.com/open-feature/cli/internal/generate/types" "github.com/iancoleman/strcase" ) diff --git a/internal/generate/plugins/react/react.go b/internal/generate/plugins/react/react.go index c8f396a..c8bb4b9 100644 --- a/internal/generate/plugins/react/react.go +++ b/internal/generate/plugins/react/react.go @@ -6,8 +6,8 @@ import ( "strconv" "text/template" - "codegen/internal/generate" - "codegen/internal/generate/types" + "github.com/open-feature/cli/internal/generate" + "github.com/open-feature/cli/internal/generate/types" "github.com/iancoleman/strcase" ) diff --git a/main.go b/main.go index f6d681d..fd17a9f 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,6 @@ package main -import "codegen/cmd" +import "github.com/open-feature/cli/cmd" var ( // Overridden by Go Releaser at build time