Skip to content

Commit

Permalink
Poly info columns (#32)
Browse files Browse the repository at this point in the history
* fix: align projects and brick status a little bit better

* bump poetry plugin to 1.0.3
  • Loading branch information
DavidVujic authored Nov 16, 2022
1 parent a9eb79d commit 6f931f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions components/polylith/info/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,19 @@ def print_bricks_in_projects(
table = Table(box=box.SIMPLE_HEAD)
table.add_column("[data]brick[/]")

for project in projects_data:
project_name = project["name"]
table.add_column(f"[proj]{project_name}[/]")
proj_cols = [f"[proj]{project['name']}[/]" for project in projects_data]
table.add_column(Columns(proj_cols, align="center", expand=True))

components = sorted((c["name"] for c in components_data))
bases = sorted((b["name"] for b in bases_data))

for brick in components:
cols = [brick_status(brick, p.get("components")) for p in projects_data]
table.add_row(f"[comp]{brick}[/]", Columns(cols))
table.add_row(f"[comp]{brick}[/]", Columns(cols, align="center", expand=True))

for brick in bases:
cols = [brick_status(brick, p.get("bases")) for p in projects_data]
table.add_row(f"[base]{brick}[/]", Columns(cols))
table.add_row(f"[base]{brick}[/]", Columns(cols, align="center", expand=True))

console.print(table, overflow="ellipsis")

Expand Down
2 changes: 1 addition & 1 deletion projects/poetry_polylith_plugin/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "poetry-polylith-plugin"
version = "1.0.2"
version = "1.0.3"
description = "A Poetry plugin that adds tooling support for the Polylith Architecture"
authors = ["David Vujic"]
homepage = "https://github.com/davidvujic/python-polylith"
Expand Down

0 comments on commit 6f931f6

Please sign in to comment.