Skip to content

Commit

Permalink
feat!: remove the 'compat' actions, making the old style syntax incom…
Browse files Browse the repository at this point in the history
…patible
  • Loading branch information
oclaussen committed Jan 3, 2025
1 parent d128d16 commit a2a8b52
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 476 deletions.
18 changes: 0 additions & 18 deletions pkg/action/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ import (
"github.com/moby/buildkit/client/llb"
oci "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/wabenet/dodfile-syntax/pkg/action/base"
cbase "github.com/wabenet/dodfile-syntax/pkg/action/compat/base"
ccopy "github.com/wabenet/dodfile-syntax/pkg/action/compat/copy"
cdownload "github.com/wabenet/dodfile-syntax/pkg/action/compat/download"
cenv "github.com/wabenet/dodfile-syntax/pkg/action/compat/env"
cinstall "github.com/wabenet/dodfile-syntax/pkg/action/compat/install"
cscript "github.com/wabenet/dodfile-syntax/pkg/action/compat/script"
"github.com/wabenet/dodfile-syntax/pkg/action/copy"
"github.com/wabenet/dodfile-syntax/pkg/action/eget"
"github.com/wabenet/dodfile-syntax/pkg/action/env"
Expand Down Expand Up @@ -75,18 +69,6 @@ func decode(key string, value interface{}) (string, map[string]interface{}) {

func getByType(t string) (Action, error) {
switch t {
case cbase.Type:
return &cbase.Action{}, nil
case ccopy.Type:
return &ccopy.Action{}, nil
case cdownload.Type:
return &cdownload.Action{}, nil
case cenv.Type:
return &cenv.Action{}, nil
case cinstall.Type:
return &cinstall.Action{}, nil
case cscript.Type:
return &cscript.Action{}, nil
case base.Type:
return &base.Action{}, nil
case copy.Type:
Expand Down
22 changes: 0 additions & 22 deletions pkg/action/compat/base/base.go

This file was deleted.

83 changes: 0 additions & 83 deletions pkg/action/compat/copy/copy.go

This file was deleted.

85 changes: 0 additions & 85 deletions pkg/action/compat/download/download.go

This file was deleted.

43 changes: 0 additions & 43 deletions pkg/action/compat/env/env.go

This file was deleted.

51 changes: 0 additions & 51 deletions pkg/action/compat/install/install.go

This file was deleted.

60 changes: 0 additions & 60 deletions pkg/action/compat/script/script.go

This file was deleted.

Loading

0 comments on commit a2a8b52

Please sign in to comment.