Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #26
Browse files Browse the repository at this point in the history
* feat: update devpod lib
  • Loading branch information
dirien authored Feb 14, 2024
1 parent ada86e3 commit c9ef918
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 21 deletions.
3 changes: 0 additions & 3 deletions cmd/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"os"

"github.com/dirien/devpod-provider-equinix/pkg/equinix"
"github.com/loft-sh/devpod/pkg/provider"
"github.com/loft-sh/devpod/pkg/ssh"
"github.com/loft-sh/log"
"github.com/pkg/errors"
Expand All @@ -31,7 +30,6 @@ func NewCommandCmd() *cobra.Command {
return cmd.Run(
context.Background(),
equinixProvider,
provider.FromEnvironment(),
log.Default,
)
},
Expand All @@ -44,7 +42,6 @@ func NewCommandCmd() *cobra.Command {
func (cmd *CommandCmd) Run(
ctx context.Context,
equinixProvider *equinix.EquinixProvider,
machine *provider.Machine,
logs log.Logger,
) error {
command := os.Getenv("COMMAND")
Expand Down
3 changes: 0 additions & 3 deletions cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"

"github.com/dirien/devpod-provider-equinix/pkg/equinix"
"github.com/loft-sh/devpod/pkg/provider"
"github.com/loft-sh/log"
"github.com/spf13/cobra"
)
Expand All @@ -27,7 +26,6 @@ func NewCreateCmd() *cobra.Command {
return cmd.Run(
context.Background(),
equinixProvider,
provider.FromEnvironment(),
log.Default,
)
},
Expand All @@ -40,7 +38,6 @@ func NewCreateCmd() *cobra.Command {
func (cmd *CreateCmd) Run(
ctx context.Context,
equinixProvider *equinix.EquinixProvider,
machine *provider.Machine,
logs log.Logger,
) error {
return equinix.Create(equinixProvider)
Expand Down
3 changes: 0 additions & 3 deletions cmd/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"github.com/dirien/devpod-provider-equinix/pkg/equinix"

"github.com/loft-sh/devpod/pkg/provider"
"github.com/loft-sh/log"
"github.com/spf13/cobra"
)
Expand All @@ -27,7 +26,6 @@ func NewDeleteCmd() *cobra.Command {
return cmd.Run(
context.Background(),
equinixProvider,
provider.FromEnvironment(),
log.Default,
)
},
Expand All @@ -40,7 +38,6 @@ func NewDeleteCmd() *cobra.Command {
func (cmd *DeleteCmd) Run(
ctx context.Context,
equinixProvider *equinix.EquinixProvider,
machine *provider.Machine,
logs log.Logger,
) error {
return equinix.Delete(equinixProvider)
Expand Down
3 changes: 0 additions & 3 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"github.com/dirien/devpod-provider-equinix/pkg/equinix"

"github.com/loft-sh/devpod/pkg/provider"
"github.com/loft-sh/log"
"github.com/spf13/cobra"
)
Expand All @@ -26,7 +25,6 @@ func NewInitCmd() *cobra.Command {
return cmd.Run(
context.Background(),
equinixProvider,
provider.FromEnvironment(),
log.Default,
)
},
Expand All @@ -39,7 +37,6 @@ func NewInitCmd() *cobra.Command {
func (cmd *InitCmd) Run(
ctx context.Context,
equinixProvider *equinix.EquinixProvider,
machine *provider.Machine,
logs log.Logger,
) error {
return equinix.Init(equinixProvider)
Expand Down
3 changes: 0 additions & 3 deletions cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"github.com/dirien/devpod-provider-equinix/pkg/equinix"

"github.com/loft-sh/devpod/pkg/provider"
"github.com/loft-sh/log"
"github.com/spf13/cobra"
)
Expand All @@ -27,7 +26,6 @@ func NewStartCmd() *cobra.Command {
return cmd.Run(
context.Background(),
equinixProvider,
provider.FromEnvironment(),
log.Default,
)
},
Expand All @@ -40,7 +38,6 @@ func NewStartCmd() *cobra.Command {
func (cmd *StartCmd) Run(
ctx context.Context,
equinixProvider *equinix.EquinixProvider,
machine *provider.Machine,
logs log.Logger,
) error {
return equinix.Start(equinixProvider)
Expand Down
3 changes: 0 additions & 3 deletions cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/dirien/devpod-provider-equinix/pkg/equinix"
"os"

"github.com/loft-sh/devpod/pkg/provider"
"github.com/loft-sh/log"
"github.com/spf13/cobra"
)
Expand All @@ -29,7 +28,6 @@ func NewStatusCmd() *cobra.Command {
return cmd.Run(
context.Background(),
equinixProvider,
provider.FromEnvironment(),
log.Default,
)
},
Expand All @@ -42,7 +40,6 @@ func NewStatusCmd() *cobra.Command {
func (cmd *StatusCmd) Run(
ctx context.Context,
equinixProvider *equinix.EquinixProvider,
machine *provider.Machine,
logs log.Logger,
) error {

Expand Down
3 changes: 0 additions & 3 deletions cmd/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"github.com/dirien/devpod-provider-equinix/pkg/equinix"

"github.com/loft-sh/devpod/pkg/provider"
"github.com/loft-sh/log"
"github.com/spf13/cobra"
)
Expand All @@ -27,7 +26,6 @@ func NewStopCmd() *cobra.Command {
return cmd.Run(
context.Background(),
equinixProvider,
provider.FromEnvironment(),
log.Default,
)
},
Expand All @@ -40,7 +38,6 @@ func NewStopCmd() *cobra.Command {
func (cmd *StopCmd) Run(
ctx context.Context,
equinixProvider *equinix.EquinixProvider,
machine *provider.Machine,
logs log.Logger,
) error {
return equinix.Stop(equinixProvider)
Expand Down

0 comments on commit c9ef918

Please sign in to comment.