feature: change table border style

This commit is contained in:
jt
2026-09-28 14:23:49 -03:00
parent e13beae279
commit e2e1c4b417
2 changed files with 9 additions and 2 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ from os.path import isfile
import questionary import questionary
import rich import rich
import rich.panel import rich.panel
from rich import box
from rich.table import Table from rich.table import Table
from git_flow import ( from git_flow import (
@@ -201,7 +202,7 @@ def show_commits(title: str, revision_range: str):
if not lines: if not lines:
raise GitFlowError("No hay cambios a mergear.") raise GitFlowError("No hay cambios a mergear.")
table = Table(title=title, title_justify="left", title_style="bold") table = Table(title=title, title_justify="left", title_style="bold", box=box.SQUARE)
table.add_column("Fecha", style="dim", no_wrap=True) table.add_column("Fecha", style="dim", no_wrap=True)
table.add_column("Tipo", style="cyan", no_wrap=True) table.add_column("Tipo", style="cyan", no_wrap=True)
table.add_column("Mensaje") table.add_column("Mensaje")
+7 -1
View File
@@ -1,6 +1,7 @@
from datetime import datetime from datetime import datetime
import typer import typer
from rich import box
from rich.table import Table from rich.table import Table
from git_flow import TRASH_BRANCH_PREFIX, WIP_BRANCH_PREFIX, GitFlowError from git_flow import TRASH_BRANCH_PREFIX, WIP_BRANCH_PREFIX, GitFlowError
@@ -95,7 +96,12 @@ def _show_index():
staged = [s for s in status if _is_staged(s)] staged = [s for s in status if _is_staged(s)]
not_staged = [s for s in status if s.worktree != " "] not_staged = [s for s in status if s.worktree != " "]
table = Table(title="Cambios a commitear", title_justify="left", title_style="bold") table = Table(
title="Cambios a commitear",
title_justify="left",
title_style="bold",
box=box.SQUARE,
)
table.add_column("Estado", style="cyan", no_wrap=True) table.add_column("Estado", style="cyan", no_wrap=True)
table.add_column("Archivo") table.add_column("Archivo")