cli icon indicating copy to clipboard operation
cli copied to clipboard

Support coreCommands extensions

Open pPrecel opened this issue 1 year ago • 1 comments

Description

Changes proposed in this pull request:

  • remove registry commands group
  • support coreCommands in extension configmap
  • enable image-import and config commands if registry configmap exists

Related issue(s)

  • https://github.com/kyma-project/cli/issues/2228

pPrecel avatar Oct 31 '24 08:10 pPrecel

To test this functionality add the following ConfigMap with the registry extension:

apiVersion: v1
kind: ConfigMap
metadata:
  labels:
    kyma-cli/extension: resource
  name: registry.extension.cli
data:
  rootCommand: |
    name: registry
    description: Set of commands for Kyma registry
    descriptionLong: Use this command manage resources related to Kyma registry

  coreCommands: |
    - actionID: registry_config
    - actionID: registry_image-import

Now spells like

  • go run main.go alpha registry
  • go run main.go alpha registry config
  • go run main.go alpha registry image-import

can be used

pPrecel avatar Oct 31 '24 08:10 pPrecel