Skip to content

Commit

Permalink
refactor: use v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ric Featherstone authored and 06kellyjac committed Dec 21, 2023
1 parent 4dbf2e4 commit d0196a7
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion controlplane/cli/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/spf13/cobra"

"github.com/controlplaneio/simulator/controlplane"
"github.com/controlplaneio/simulator/v2/controlplane"
)

var bucketCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion controlplane/cli/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/spf13/cobra"

"github.com/controlplaneio/simulator/controlplane"
"github.com/controlplaneio/simulator/v2/controlplane"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion controlplane/cli/infra.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/spf13/cobra"

"github.com/controlplaneio/simulator/controlplane"
"github.com/controlplaneio/simulator/v2/controlplane"
)

var infraCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion controlplane/cli/scenario.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/spf13/cobra"

"github.com/controlplaneio/simulator/controlplane"
"github.com/controlplaneio/simulator/v2/controlplane"
)

var scenarioCmd = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions controlplane/cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/controlplaneio/simulator/controlplane/cli"
"github.com/controlplaneio/simulator/logging"
"github.com/controlplaneio/simulator/v2/controlplane/cli"
"github.com/controlplaneio/simulator/v2/logging"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion controlplane/commands/packer.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package commands

import (
"github.com/controlplaneio/simulator/controlplane/aws"
"github.com/controlplaneio/simulator/v2/controlplane/aws"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion controlplane/commands/terraform.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package commands

import (
"github.com/controlplaneio/simulator/controlplane/aws"
"github.com/controlplaneio/simulator/v2/controlplane/aws"
)

type TerraformCommandType bool
Expand Down
4 changes: 2 additions & 2 deletions controlplane/simulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"path/filepath"

"github.com/controlplaneio/simulator/controlplane/aws"
"github.com/controlplaneio/simulator/controlplane/commands"
"github.com/controlplaneio/simulator/v2/controlplane/aws"
"github.com/controlplaneio/simulator/v2/controlplane/commands"
)

const (
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 github.com/controlplaneio/simulator
module github.com/controlplaneio/simulator/v2

go 1.21

Expand Down
2 changes: 1 addition & 1 deletion internal/cli/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/spf13/cobra"

"github.com/controlplaneio/simulator/internal/container"
"github.com/controlplaneio/simulator/v2/internal/container"
)

var bucketCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/spf13/cobra"

"github.com/controlplaneio/simulator/internal/container"
"github.com/controlplaneio/simulator/v2/internal/container"
)

var imageCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/infra.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/spf13/cobra"

"github.com/controlplaneio/simulator/internal/container"
"github.com/controlplaneio/simulator/v2/internal/container"
)

var infraCmd = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions internal/cli/scenario.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/olekukonko/tablewriter"
"github.com/spf13/cobra"

"github.com/controlplaneio/simulator/internal/container"
"github.com/controlplaneio/simulator/scenarios"
"github.com/controlplaneio/simulator/v2/internal/container"
"github.com/controlplaneio/simulator/v2/scenarios"
)

var scenarioCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/simulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cli
import (
"github.com/spf13/cobra"

"github.com/controlplaneio/simulator/internal/config"
"github.com/controlplaneio/simulator/v2/internal/config"
)

var cfg *config.Config
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/controlplaneio/simulator/internal/cli"
"github.com/controlplaneio/simulator/logging"
"github.com/controlplaneio/simulator/v2/internal/cli"
"github.com/controlplaneio/simulator/v2/logging"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions internal/container/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
"github.com/docker/docker/client"
v1 "github.com/opencontainers/image-spec/specs-go/v1"

"github.com/controlplaneio/simulator/controlplane"
"github.com/controlplaneio/simulator/controlplane/aws"
"github.com/controlplaneio/simulator/internal/config"
"github.com/controlplaneio/simulator/v2/controlplane"
"github.com/controlplaneio/simulator/v2/controlplane/aws"
"github.com/controlplaneio/simulator/v2/internal/config"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion scenarios/scenarios.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"gopkg.in/yaml.v2"

"github.com/controlplaneio/simulator/controlplane"
"github.com/controlplaneio/simulator/v2/controlplane"
)

//go:embed scenarios.yaml
Expand Down

0 comments on commit d0196a7

Please sign in to comment.