From e2e1c4b417d979161f6723ae9af2bd4ef19cbcb4 Mon Sep 17 00:00:00 2001 From: Jonathan Teran Carballo Date: Mon, 28 Sep 2026 14:23:49 -0300 Subject: [PATCH] feature: change table border style --- src/git_flow/command/base.py | 3 ++- src/git_flow/command/commit.py | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/git_flow/command/base.py b/src/git_flow/command/base.py index 9e6e8ae..7eb0a6f 100644 --- a/src/git_flow/command/base.py +++ b/src/git_flow/command/base.py @@ -5,6 +5,7 @@ from os.path import isfile import questionary import rich import rich.panel +from rich import box from rich.table import Table from git_flow import ( @@ -201,7 +202,7 @@ def show_commits(title: str, revision_range: str): if not lines: 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("Tipo", style="cyan", no_wrap=True) table.add_column("Mensaje") diff --git a/src/git_flow/command/commit.py b/src/git_flow/command/commit.py index 9ef004f..fbc5e4b 100644 --- a/src/git_flow/command/commit.py +++ b/src/git_flow/command/commit.py @@ -1,6 +1,7 @@ from datetime import datetime import typer +from rich import box from rich.table import Table 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)] 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("Archivo")