update tag
This commit is contained in:
@@ -1185,14 +1185,10 @@ class Add_Tag(Cmdlet):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
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)
|
subject = display_items[0] if len(display_items) == 1 else list(display_items)
|
||||||
# Use helper to display items and make them @-selectable
|
# 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_type = "item" if len(display_items) <= _DETAIL_PANEL_LIMIT else "custom"
|
||||||
display_and_persist_items(
|
sh.display_and_persist_items(
|
||||||
list(display_items),
|
list(display_items),
|
||||||
title="Result",
|
title="Result",
|
||||||
subject=subject,
|
subject=subject,
|
||||||
@@ -1226,4 +1222,3 @@ class Add_Tag(Cmdlet):
|
|||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -740,10 +740,8 @@ def _run(result: Any, args: Sequence[str], config: Dict[str, Any]) -> int:
|
|||||||
if is_last_stage and display_items:
|
if is_last_stage and display_items:
|
||||||
try:
|
try:
|
||||||
subject = display_items[0] if len(display_items) == 1 else list(display_items)
|
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_type = "item" if len(display_items) <= _DETAIL_PANEL_LIMIT else "custom"
|
||||||
display_and_persist_items(
|
sh.display_and_persist_items(
|
||||||
list(display_items),
|
list(display_items),
|
||||||
title="Result",
|
title="Result",
|
||||||
subject=subject,
|
subject=subject,
|
||||||
@@ -892,4 +890,3 @@ def _process_deletion(
|
|||||||
log(f"del-tag failed: {exc}")
|
log(f"del-tag failed: {exc}")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user