Skip to content

Commit

Permalink
refactor: change name of go module (#46)
Browse files Browse the repository at this point in the history
<!-- Please use this template for your pull request. -->
<!-- Please use the sections that you need and delete other sections -->

## This PR
Changes the name of the go module

### Related Issues
<!-- add here the GitHub issue that this PR resolves if applicable -->

Fixes #45

---------

Signed-off-by: Florin-Mihai Anghel <[email protected]>
Signed-off-by: Florin-Mihai Anghel <[email protected]>
Co-authored-by: Michael Beemer <[email protected]>
  • Loading branch information
anghelflorinm and beeme1mr authored Oct 31, 2024
1 parent 7a1f9f3 commit e3058db
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 26 deletions.
6 changes: 3 additions & 3 deletions cmd/generate/generate.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 2 additions & 1 deletion cmd/generate/generate_test.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions cmd/generate/golang/golang.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions cmd/generate/react/react.go
Original file line number Diff line number Diff line change
@@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"codegen/cmd/generate"
"github.com/open-feature/cli/cmd/generate"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion docs/schema/v0/flagmanifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module codegen
module github.com/open-feature/cli

go 1.22.5

Expand Down
2 changes: 1 addition & 1 deletion internal/filesystem/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 5 additions & 4 deletions internal/generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
9 changes: 5 additions & 4 deletions internal/generate/manifestutils/manifestutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions internal/generate/plugins/golang/golang.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/generate/plugins/react/react.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "codegen/cmd"
import "github.com/open-feature/cli/cmd"

var (
// Overridden by Go Releaser at build time
Expand Down

0 comments on commit e3058db

Please sign in to comment.