Skip to content

Commit

Permalink
Expose internale packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kajogo777 committed Feb 21, 2023
1 parent 45b43aa commit f9eec3a
Show file tree
Hide file tree
Showing 28 changed files with 54 additions and 54 deletions.
2 changes: 1 addition & 1 deletion cmd/devx/auth.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"devopzilla.com/guku/internal/auth"
"devopzilla.com/guku-devx/pkg/auth"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/devx/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"

"cuelang.org/go/cue/errors"
"devopzilla.com/guku/internal/client"
"devopzilla.com/guku-devx/pkg/client"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/devx/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"

"cuelang.org/go/cue/errors"
"devopzilla.com/guku/internal/client"
"devopzilla.com/guku-devx/pkg/client"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/devx/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"os"

"devopzilla.com/guku/internal/auth"
"devopzilla.com/guku-devx/pkg/auth"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/devx/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"github.com/spf13/cobra"

"cuelang.org/go/cue/errors"
"devopzilla.com/guku/internal/catalog"
"devopzilla.com/guku/internal/policy"
"devopzilla.com/guku/internal/project"
"devopzilla.com/guku-devx/pkg/catalog"
"devopzilla.com/guku-devx/pkg/policy"
"devopzilla.com/guku-devx/pkg/project"
)

var projectCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/devx/reserve.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"devopzilla.com/guku/internal/client"
"devopzilla.com/guku-devx/pkg/client"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/devx/retire.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"devopzilla.com/guku/internal/client"
"devopzilla.com/guku-devx/pkg/client"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/devx/run.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"devopzilla.com/guku/internal/taskfile"
"devopzilla.com/guku-devx/pkg/taskfile"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module devopzilla.com/guku
module devopzilla.com/guku-devx

go 1.18

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions internal/catalog/catalog.go → pkg/catalog/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"cuelang.org/go/cue/format"
log "github.com/sirupsen/logrus"

"devopzilla.com/guku/internal/auth"
"devopzilla.com/guku/internal/gitrepo"
"devopzilla.com/guku/internal/utils"
"devopzilla.com/guku-devx/pkg/auth"
"devopzilla.com/guku-devx/pkg/gitrepo"
"devopzilla.com/guku-devx/pkg/utils"
)

type CatalogItem struct {
Expand Down
12 changes: 6 additions & 6 deletions internal/client/client.go → pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import (
"github.com/go-git/go-git/v5/plumbing"
log "github.com/sirupsen/logrus"

"devopzilla.com/guku/internal/auth"
"devopzilla.com/guku/internal/drivers"
"devopzilla.com/guku/internal/project"
"devopzilla.com/guku/internal/stack"
"devopzilla.com/guku/internal/stackbuilder"
"devopzilla.com/guku/internal/utils"
"devopzilla.com/guku-devx/pkg/auth"
"devopzilla.com/guku-devx/pkg/drivers"
"devopzilla.com/guku-devx/pkg/project"
"devopzilla.com/guku-devx/pkg/stack"
"devopzilla.com/guku-devx/pkg/stackbuilder"
"devopzilla.com/guku-devx/pkg/utils"
)

func Run(environment string, configDir string, stackPath string, buildersPath string, reserve bool, dryRun bool, server auth.ServerConfig, strict bool, stdout bool) error {
Expand Down
6 changes: 3 additions & 3 deletions internal/drivers/compose.go → pkg/drivers/compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"cuelang.org/go/cue"
"cuelang.org/go/encoding/yaml"
"devopzilla.com/guku/internal/stack"
"devopzilla.com/guku/internal/stackbuilder"
"devopzilla.com/guku/internal/utils"
"devopzilla.com/guku-devx/pkg/stack"
"devopzilla.com/guku-devx/pkg/stackbuilder"
"devopzilla.com/guku-devx/pkg/utils"
log "github.com/sirupsen/logrus"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/drivers/drivers.go → pkg/drivers/drivers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package drivers

import (
"cuelang.org/go/cue"
"devopzilla.com/guku/internal/stack"
"devopzilla.com/guku/internal/stackbuilder"
"devopzilla.com/guku-devx/pkg/stack"
"devopzilla.com/guku-devx/pkg/stackbuilder"
)

type Driver interface {
Expand Down
6 changes: 3 additions & 3 deletions internal/drivers/github.go → pkg/drivers/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

"cuelang.org/go/cue"
"cuelang.org/go/encoding/yaml"
"devopzilla.com/guku/internal/stack"
"devopzilla.com/guku/internal/stackbuilder"
"devopzilla.com/guku/internal/utils"
"devopzilla.com/guku-devx/pkg/stack"
"devopzilla.com/guku-devx/pkg/stackbuilder"
"devopzilla.com/guku-devx/pkg/utils"
log "github.com/sirupsen/logrus"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/drivers/gitlab.go → pkg/drivers/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"cuelang.org/go/cue"
"cuelang.org/go/encoding/yaml"
"devopzilla.com/guku/internal/stack"
"devopzilla.com/guku/internal/stackbuilder"
"devopzilla.com/guku/internal/utils"
"devopzilla.com/guku-devx/pkg/stack"
"devopzilla.com/guku-devx/pkg/stackbuilder"
"devopzilla.com/guku-devx/pkg/utils"
log "github.com/sirupsen/logrus"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/drivers/kubernetes.go → pkg/drivers/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"cuelang.org/go/cue"
"cuelang.org/go/encoding/yaml"
"devopzilla.com/guku/internal/stack"
"devopzilla.com/guku/internal/stackbuilder"
"devopzilla.com/guku/internal/utils"
"devopzilla.com/guku-devx/pkg/stack"
"devopzilla.com/guku-devx/pkg/stackbuilder"
"devopzilla.com/guku-devx/pkg/utils"
log "github.com/sirupsen/logrus"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/drivers/terraform.go → pkg/drivers/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"path"

"cuelang.org/go/cue"
"devopzilla.com/guku/internal/stack"
"devopzilla.com/guku/internal/stackbuilder"
"devopzilla.com/guku/internal/utils"
"devopzilla.com/guku-devx/pkg/stack"
"devopzilla.com/guku-devx/pkg/stackbuilder"
"devopzilla.com/guku-devx/pkg/utils"
log "github.com/sirupsen/logrus"
)

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions internal/policy/policy.go → pkg/policy/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"cuelang.org/go/cue"
"cuelang.org/go/encoding/gocode/gocodec"
"devopzilla.com/guku/internal/auth"
"devopzilla.com/guku/internal/utils"
"devopzilla.com/guku-devx/pkg/auth"
"devopzilla.com/guku-devx/pkg/utils"
log "github.com/sirupsen/logrus"
)

Expand Down
10 changes: 5 additions & 5 deletions internal/project/project.go → pkg/project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import (
"cuelang.org/go/cue"
"cuelang.org/go/cue/cuecontext"
"cuelang.org/go/cue/format"
"devopzilla.com/guku/internal/auth"
"devopzilla.com/guku/internal/gitrepo"
"devopzilla.com/guku/internal/stack"
"devopzilla.com/guku/internal/stackbuilder"
"devopzilla.com/guku/internal/utils"
"devopzilla.com/guku-devx/pkg/auth"
"devopzilla.com/guku-devx/pkg/gitrepo"
"devopzilla.com/guku-devx/pkg/stack"
"devopzilla.com/guku-devx/pkg/stackbuilder"
"devopzilla.com/guku-devx/pkg/utils"
"github.com/go-git/go-billy/v5"
"github.com/go-git/go-billy/v5/memfs"
"github.com/go-git/go-git/v5"
Expand Down
6 changes: 3 additions & 3 deletions internal/stack/stack.go → pkg/stack/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"cuelang.org/go/cue"
cueflow "cuelang.org/go/tools/flow"
"devopzilla.com/guku/internal/auth"
"devopzilla.com/guku/internal/gitrepo"
"devopzilla.com/guku/internal/utils"
"devopzilla.com/guku-devx/pkg/auth"
"devopzilla.com/guku-devx/pkg/gitrepo"
"devopzilla.com/guku-devx/pkg/utils"
log "github.com/sirupsen/logrus"
)

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions internal/stackbuilder/flow.go → pkg/stackbuilder/flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"

"cuelang.org/go/cue"
"devopzilla.com/guku/internal/stack"
"devopzilla.com/guku/internal/utils"
"devopzilla.com/guku-devx/pkg/stack"
"devopzilla.com/guku-devx/pkg/utils"
log "github.com/sirupsen/logrus"
)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

"cuelang.org/go/cue"
"cuelang.org/go/cue/errors"
"devopzilla.com/guku/internal/stack"
"devopzilla.com/guku/internal/utils"
"devopzilla.com/guku-devx/pkg/stack"
"devopzilla.com/guku-devx/pkg/utils"
"github.com/schollz/progressbar/v3"
log "github.com/sirupsen/logrus"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/taskfile/run.go → pkg/taskfile/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"cuelang.org/go/cue"
cueyaml "cuelang.org/go/encoding/yaml"

"devopzilla.com/guku/internal/stackbuilder"
"devopzilla.com/guku/internal/utils"
"devopzilla.com/guku-devx/pkg/stackbuilder"
"devopzilla.com/guku-devx/pkg/utils"

"mvdan.cc/sh/v3/syntax"

Expand Down
2 changes: 1 addition & 1 deletion internal/utils/utils.go → pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"cuelang.org/go/cue/build"
"cuelang.org/go/cue/cuecontext"
cueload "cuelang.org/go/cue/load"
"devopzilla.com/guku/internal/auth"
"devopzilla.com/guku-devx/pkg/auth"
"github.com/go-git/go-billy/v5"
log "github.com/sirupsen/logrus"
"gopkg.in/yaml.v3"
Expand Down

0 comments on commit f9eec3a

Please sign in to comment.