diff --git a/cmdlet/metadata/tag_add.py b/cmdlet/metadata/tag_add.py index 576d18c..b06927c 100644 --- a/cmdlet/metadata/tag_add.py +++ b/cmdlet/metadata/tag_add.py @@ -1185,14 +1185,10 @@ class Add_Tag(Cmdlet): pass try: - from SYS.rich_display import render_item_details_panel - from SYS.result_table import Table - subject = display_items[0] if len(display_items) == 1 else list(display_items) # Use helper to display items and make them @-selectable - from ._shared import display_and_persist_items display_type = "item" if len(display_items) <= _DETAIL_PANEL_LIMIT else "custom" - display_and_persist_items( + sh.display_and_persist_items( list(display_items), title="Result", subject=subject, @@ -1226,4 +1222,3 @@ class Add_Tag(Cmdlet): return 0 - diff --git a/cmdlet/metadata/tag_delete.py b/cmdlet/metadata/tag_delete.py index 1cb9f41..aea774b 100644 --- a/cmdlet/metadata/tag_delete.py +++ b/cmdlet/metadata/tag_delete.py @@ -740,10 +740,8 @@ def _run(result: Any, args: Sequence[str], config: Dict[str, Any]) -> int: if is_last_stage and display_items: try: subject = display_items[0] if len(display_items) == 1 else list(display_items) - from ._shared import display_and_persist_items - display_type = "item" if len(display_items) <= _DETAIL_PANEL_LIMIT else "custom" - display_and_persist_items( + sh.display_and_persist_items( list(display_items), title="Result", subject=subject, @@ -892,4 +890,3 @@ def _process_deletion( log(f"del-tag failed: {exc}") return False -