Skip to content

feat(cli)!: ocm get cv --recursive#604

Merged
jakobmoellerdev merged 44 commits into
open-component-model:mainfrom
fabianburth:feat/get-recursive
Aug 27, 2025
Merged

feat(cli)!: ocm get cv --recursive#604
jakobmoellerdev merged 44 commits into
open-component-model:mainfrom
fabianburth:feat/get-recursive

Conversation

@fabianburth

@fabianburth fabianburth commented Aug 21, 2025

Copy link
Copy Markdown
Contributor

What this PR does / why we need it

This PR introduces the --recursive option ocm get cv.

Notes for the Reviewers
--output=yaml and --output=json now always return a list - even if only a single element is found. This is because those formats are intended to be machine readable, and not having to distinct between list or single elements makes parsing easier.
That's also why I had to adjust the ctf/verify tasks yq statement.

TODO:

  • Discuss cli repository API.
  • Discuss whether whether we want to offer utility methods for getting resolvers from context and rendering components.

Which issue(s) this PR fixes

open-component-model/ocm-project#563

@github-actions github-actions Bot added kind/feature new feature, enhancement, improvement, extension size/m Medium labels Aug 21, 2025
@github-actions github-actions Bot added the size/l Large label Aug 22, 2025
@fabianburth fabianburth force-pushed the feat/get-recursive branch 6 times, most recently from d0b59a0 to 248b971 Compare August 26, 2025 13:46
@fabianburth fabianburth changed the title feat(cli): ocm get cv --recursive feat(cli)!: ocm get cv --recursive Aug 26, 2025
@github-actions github-actions Bot added the !BREAKING-CHANGE! Breaking change in API or ocm-cli or spec label Aug 26, 2025
@fabianburth fabianburth marked this pull request as ready for review August 26, 2025 14:20
@fabianburth fabianburth requested a review from a team as a code owner August 26, 2025 14:20
Comment thread cli/cmd/get/component-version/cmd.go
Comment thread cli/cmd/get/component-version/cmd.go Outdated
Comment thread cli/cmd/get/component-version/cmd.go
Comment thread cli/internal/render/graph/list/serializer.go
Comment thread cli/internal/render/graph/list/serializer.go Outdated
Comment thread cli/internal/repository/ocm/repository.go Outdated
Comment thread cli/internal/repository/ocm/repository.go Outdated
Comment thread cli/internal/repository/ocm/repository.go Outdated
Comment thread cli/internal/repository/ocm/repository.go
Comment thread cli/cmd/cmd_test.go
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
…y added by cobra for enums

Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
@jakobmoellerdev jakobmoellerdev merged commit 77607ae into open-component-model:main Aug 27, 2025
22 checks passed
@fabianburth fabianburth deleted the feat/get-recursive branch August 27, 2025 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

!BREAKING-CHANGE! Breaking change in API or ocm-cli or spec kind/feature new feature, enhancement, improvement, extension size/l Large size/m Medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants