Skip to content

Commit

Permalink
Merge pull request #45
Browse files Browse the repository at this point in the history
* feat: update devpod lib
  • Loading branch information
dirien committed Feb 14, 2024
1 parent 7368e32 commit 04f54f5
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 22 deletions.
4 changes: 0 additions & 4 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-scaleway/pkg/scaleway"
"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 @@ -27,11 +26,9 @@ func NewCommandCmd() *cobra.Command {
if err != nil {
return err
}

return cmd.Run(
context.Background(),
scalewayProvider,
provider.FromEnvironment(),
log.Default,
)
},
Expand All @@ -44,7 +41,6 @@ func NewCommandCmd() *cobra.Command {
func (cmd *CommandCmd) Run(
ctx context.Context,
providerScaleway *scaleway.ScalewayProvider,
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-scaleway/pkg/scaleway"
"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(),
scalewayProvider,
provider.FromEnvironment(),
log.Default,
)
},
Expand All @@ -40,7 +38,6 @@ func NewCreateCmd() *cobra.Command {
func (cmd *CreateCmd) Run(
ctx context.Context,
providerScaleway *scaleway.ScalewayProvider,
machine *provider.Machine,
logs log.Logger,
) error {
return scaleway.Create(providerScaleway)
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-scaleway/pkg/scaleway"
"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(),
scalewayProvider,
provider.FromEnvironment(),
log.Default,
)
},
Expand All @@ -40,7 +38,6 @@ func NewDeleteCmd() *cobra.Command {
func (cmd *DeleteCmd) Run(
ctx context.Context,
providerScaleway *scaleway.ScalewayProvider,
machine *provider.Machine,
logs log.Logger,
) error {
return scaleway.Delete(providerScaleway)
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-scaleway/pkg/scaleway"
"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(),
scalewayProvider,
provider.FromEnvironment(),
log.Default,
)
},
Expand All @@ -39,7 +37,6 @@ func NewInitCmd() *cobra.Command {
func (cmd *InitCmd) Run(
ctx context.Context,
scalewayProvider *scaleway.ScalewayProvider,
machine *provider.Machine,
logs log.Logger,
) error {
return scaleway.Init(scalewayProvider)
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-scaleway/pkg/scaleway"
"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(),
scalewayProvider,
provider.FromEnvironment(),
log.Default,
)
},
Expand All @@ -40,7 +38,6 @@ func NewStartCmd() *cobra.Command {
func (cmd *StartCmd) Run(
ctx context.Context,
providerScaleway *scaleway.ScalewayProvider,
machine *provider.Machine,
logs log.Logger,
) error {
return scaleway.Start(providerScaleway)
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 (
"os"

"github.com/dirien/devpod-provider-scaleway/pkg/scaleway"
"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(),
scalewayProvider,
provider.FromEnvironment(),
log.Default,
)
},
Expand All @@ -42,7 +40,6 @@ func NewStatusCmd() *cobra.Command {
func (cmd *StatusCmd) Run(
ctx context.Context,
providerScaleway *scaleway.ScalewayProvider,
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-scaleway/pkg/scaleway"
"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(),
scalewayProvider,
provider.FromEnvironment(),
log.Default,
)
},
Expand All @@ -40,7 +38,6 @@ func NewStopCmd() *cobra.Command {
func (cmd *StopCmd) Run(
ctx context.Context,
providerScaleway *scaleway.ScalewayProvider,
machine *provider.Machine,
logs log.Logger,
) error {
return scaleway.Stop(providerScaleway)
Expand Down

0 comments on commit 04f54f5

Please sign in to comment.