This commit is contained in:
2026-01-20 17:19:15 -08:00
parent 922b649e17
commit a90c772ad9
4 changed files with 41 additions and 75 deletions

16
CLI.py
View File

@@ -1194,17 +1194,26 @@ class CmdletExecutor:
"get_relationship",
"get-file",
"get_file",
"get-metadata",
"get_metadata",
}
self_managing_commands = {
"get-tag",
"get_tag",
"tags",
"get-metadata",
"get_metadata",
"search-file",
"search_file",
}
if cmd_name in self_managing_commands:
table = ctx.get_last_result_table()
table = (
ctx.get_display_table()
if hasattr(ctx, "get_display_table") else None
)
if table is None:
table = ctx.get_last_result_table()
if table is None:
table = Table(table_title)
for emitted in emits:
@@ -1249,8 +1258,9 @@ class CmdletExecutor:
progress_ui = None
pipe_idx = None
stdout_console().print()
stdout_console().print(table)
if not getattr(table, "_rendered_by_cmdlet", False):
stdout_console().print()
stdout_console().print(table)
# If the cmdlet produced a current-stage table without emits (e.g. format selection),
# render it here for parity with REPL pipeline runner.