Skip to content

feat(cli): add tree renderer#511

Merged
jakobmoellerdev merged 54 commits into
open-component-model:mainfrom
fabianburth:feat/tree-renderer
Aug 18, 2025
Merged

feat(cli): add tree renderer#511
jakobmoellerdev merged 54 commits into
open-component-model:mainfrom
fabianburth:feat/tree-renderer

Conversation

@fabianburth

@fabianburth fabianburth commented Aug 6, 2025

Copy link
Copy Markdown
Contributor

What this PR does / why we need it

This PR introduces:

  • a render loop for live display on command line
  • a tree renderer for rendering a DAG with a single root as shown below
── A (completed)
   ├─ B (completed)
   │  ╰─ C (completed)
   ╰─ D (completed)

Which issue(s) this PR fixes

Contributes to open-component-model/ocm-project#564

@github-actions github-actions Bot added kind/feature new feature, enhancement, improvement, extension size/l Large labels Aug 6, 2025
@github-actions github-actions Bot added the size/m Medium label Aug 14, 2025
Comment thread cli/go.mod Outdated
Comment thread cli/internal/graph/renderer/render.go Outdated
Comment thread cli/internal/graph/renderer/render.go Outdated
Comment thread cli/internal/graph/renderer/render.go Outdated
Comment thread cli/internal/graph/renderer/render.go Outdated
Comment thread cli/internal/graph/renderer/render.go Outdated
Comment thread cli/internal/graph/renderer/tree_renderer.go Outdated
Comment thread cli/internal/graph/renderer/utils.go Outdated
Comment thread cli/internal/graph/renderer/utils.go Outdated
Comment thread cli/internal/graph/renderer/render.go Outdated
@fabianburth fabianburth marked this pull request as ready for review August 15, 2025 12:15
@fabianburth fabianburth requested a review from a team as a code owner August 15, 2025 12:15
Comment thread cli/internal/renderer/graph/tree/renderer.go Outdated
Comment thread cli/internal/renderer/graph/tree/renderer.go
Comment thread cli/internal/renderer/graph/utils.go Outdated
Comment thread cli/internal/renderer/graph/utils.go Outdated
Comment thread cli/internal/renderer/render.go Outdated
fabianburth and others added 18 commits August 18, 2025 15:25
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>
…r handling

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: Jakob Möller <jakob.moeller@sap.com>
…package structure and introduce options

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>
fabianburth and others added 26 commits August 18, 2025 16:35
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
Signed-off-by: Fabian Burth <fabian.burth@sap.com>
…r handling

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: Jakob Möller <jakob.moeller@sap.com>
…package structure and introduce options

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>
…void func fields

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>
…at/tree-renderer

# Conflicts:
#	cli/internal/renderer/graph/tree/renderer.go
@jakobmoellerdev jakobmoellerdev enabled auto-merge (squash) August 18, 2025 14:57
@jakobmoellerdev jakobmoellerdev merged commit 6e3f4a5 into open-component-model:main Aug 18, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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