Skip to content

Allow extending the same command groups by adding different extensions #2745

@pPrecel

Description

@pPrecel

Description

Some modules may want to extend the same command group (for example, the app command group). We should add support for operations described in the example:

Extension 1 structure:

- app (no execution)
  - expose
  - deploy-demo

Extension 2 structure:

- app (no execution)
  - diagnose
  - metrics

Final kyma app --help execution:

Use this command to manage applications on the Kubernetes cluster.

Usage:
  kyma app [command]

Available Commands:
  push        # built in
  expose      # from ext1
  deploy-demo # from ext1
  diagnose    # from ext2
  metrics     # from ext2

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions