Skip to content

Commit 8de914e

Browse files
committed
changefilenames
1 parent 44494a5 commit 8de914e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,32 @@ import (
77
"github.com/spf13/cobra"
88
)
99

10-
type removeConfig struct {
10+
type deleteConfig struct {
1111
*cmdcommon.KymaConfig
1212

1313
module string
1414
}
1515

16-
func newRemoveCMD(kymaConfig *cmdcommon.KymaConfig) *cobra.Command {
17-
cfg := removeConfig{
16+
func newDeleteCMD(kymaConfig *cmdcommon.KymaConfig) *cobra.Command {
17+
cfg := deleteConfig{
1818
KymaConfig: kymaConfig,
1919
}
2020

2121
cmd := &cobra.Command{
22-
Use: "remove <module>",
23-
Short: "Remove module",
24-
Long: "Use this command to remove module",
22+
Use: "delete <module>",
23+
Short: "Delete module",
24+
Long: "Use this command to delete module",
2525
Args: cobra.ExactArgs(1),
2626
Run: func(cmd *cobra.Command, args []string) {
2727
cfg.module = args[0]
28-
clierror.Check(runRemove(&cfg))
28+
clierror.Check(runDelete(&cfg))
2929
},
3030
}
3131

3232
return cmd
3333
}
3434

35-
func runRemove(cfg *removeConfig) clierror.Error {
35+
func runDelete(cfg *deleteConfig) clierror.Error {
3636
client, clierr := cfg.GetKubeClientWithClierr()
3737
if clierr != nil {
3838
return clierr

internal/cmd/alpha/module/module.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func NewModuleCMD(kymaConfig *cmdcommon.KymaConfig) *cobra.Command {
1515

1616
cmd.AddCommand(newListCMD(kymaConfig))
1717
cmd.AddCommand(newAddCMD(kymaConfig))
18-
cmd.AddCommand(newRemoveCMD(kymaConfig))
18+
cmd.AddCommand(newDeleteCMD(kymaConfig))
1919

2020
return cmd
2121
}

0 commit comments

Comments
 (0)