File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
internal/cmd/alpha/module Expand file tree Collapse file tree 3 files changed +9
-9
lines changed File renamed without changes.
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments