f
This commit is contained in:
16
CLI.py
16
CLI.py
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user