From 5dc79789a3d55fe5760913beade386670e11def1 Mon Sep 17 00:00:00 2001 From: Aochuba S Aier Date: Wed, 13 May 2026 19:57:41 +0530 Subject: [PATCH] resolve tree formattting to a simplier and better visualization (#1305) * resolve tree formattting to a simpier and easier visualization Signed-off-by: aochuba * adding missing print statement Signed-off-by: aochuba --------- Signed-off-by: aochuba Co-authored-by: Paige Patton <64206430+paigerube14@users.noreply.github.com> --- krkn/rollback/command.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/krkn/rollback/command.py b/krkn/rollback/command.py index fc154a32..3057f2b2 100644 --- a/krkn/rollback/command.py +++ b/krkn/rollback/command.py @@ -85,7 +85,9 @@ def list_rollback(run_uuid: Optional[str]=None, scenario_type: Optional[str]=Non files.sort() for j, file in enumerate(files): is_last_file = (j == len(files) - 1) - file_prefix = " └── " if is_last_dir else "│ └── " if is_last_file else ("│ ├── " if not is_last_dir else " ├── ") + dir_pad = " " if is_last_dir else "│ " + file_pad = "└── " if is_last_file else "├── " + file_prefix = dir_pad + file_pad print(f"{file_prefix}{file}") except PermissionError: