diff --git a/internal/cmdcommon/extension.go b/internal/cmdcommon/extension.go index cf91038ec..2726c1a63 100644 --- a/internal/cmdcommon/extension.go +++ b/internal/cmdcommon/extension.go @@ -56,7 +56,7 @@ func addGenericCommands(cmd *cobra.Command, genericCommands *TemplateCommands, a func addCoreCommands(cmd *cobra.Command, config *KymaConfig, extensionCoreCommands []CoreCommandInfo, availableCoreCommands CoreCommandsMap) { for _, expectedCoreCommand := range extensionCoreCommands { - command, ok := availableCoreCommands[expectedCoreCommand.FeatureID] + command, ok := availableCoreCommands[expectedCoreCommand.ActionID] if !ok { // commands doesn't exist in this version of cli and we will not process it continue diff --git a/internal/cmdcommon/extension_test.go b/internal/cmdcommon/extension_test.go index 754c69b48..3175bcc13 100644 --- a/internal/cmdcommon/extension_test.go +++ b/internal/cmdcommon/extension_test.go @@ -112,8 +112,8 @@ explain: output: test-explain-output `, ExtensionCoreCommandsKey: ` -- featureID: test-feature-id-1 -- featureID: test-feature-id-2 +- actionID: test-action-id-1 +- actionID: test-action-id-2 `, }, } @@ -143,10 +143,10 @@ func fixTestExtension(name string) Extension { }, CoreCommands: []CoreCommandInfo{ { - FeatureID: "test-feature-id-1", + ActionID: "test-action-id-1", }, { - FeatureID: "test-feature-id-2", + ActionID: "test-action-id-2", }, }, } diff --git a/internal/cmdcommon/extension_types.go b/internal/cmdcommon/extension_types.go index a1ec3d9fc..25267ba0c 100644 --- a/internal/cmdcommon/extension_types.go +++ b/internal/cmdcommon/extension_types.go @@ -80,5 +80,5 @@ type TemplateCommands struct { type CoreCommandInfo struct { // id of the functionality that cli will run when user use this command - FeatureID string `yaml:"featureID"` + ActionID string `yaml:"actionID"` }