diff --git a/internal/cmd/alpha/module/enable.go b/internal/cmd/alpha/module/add.go similarity index 100% rename from internal/cmd/alpha/module/enable.go rename to internal/cmd/alpha/module/add.go diff --git a/internal/cmd/alpha/module/disable.go b/internal/cmd/alpha/module/delete.go similarity index 81% rename from internal/cmd/alpha/module/disable.go rename to internal/cmd/alpha/module/delete.go index 8321b4ecc..e68117126 100644 --- a/internal/cmd/alpha/module/disable.go +++ b/internal/cmd/alpha/module/delete.go @@ -7,14 +7,14 @@ import ( "github.com/spf13/cobra" ) -type removeConfig struct { +type deleteConfig struct { *cmdcommon.KymaConfig module string } -func newRemoveCMD(kymaConfig *cmdcommon.KymaConfig) *cobra.Command { - cfg := removeConfig{ +func newDeleteCMD(kymaConfig *cmdcommon.KymaConfig) *cobra.Command { + cfg := deleteConfig{ KymaConfig: kymaConfig, } @@ -32,7 +32,7 @@ func newRemoveCMD(kymaConfig *cmdcommon.KymaConfig) *cobra.Command { return cmd } -func runRemove(cfg *removeConfig) clierror.Error { +func runRemove(cfg *deleteConfig) clierror.Error { client, clierr := cfg.GetKubeClientWithClierr() if clierr != nil { return clierr diff --git a/internal/cmd/alpha/module/module.go b/internal/cmd/alpha/module/module.go index 805e76ab3..d2bd07f8b 100644 --- a/internal/cmd/alpha/module/module.go +++ b/internal/cmd/alpha/module/module.go @@ -15,7 +15,7 @@ func NewModuleCMD(kymaConfig *cmdcommon.KymaConfig) *cobra.Command { cmd.AddCommand(newListCMD(kymaConfig)) cmd.AddCommand(newAddCMD(kymaConfig)) - cmd.AddCommand(newRemoveCMD(kymaConfig)) + cmd.AddCommand(newDeleteCMD(kymaConfig)) return cmd }