cmdlet refactor

This commit is contained in:
2026-05-04 18:41:01 -07:00
parent 3ce339b3c1
commit 24f983473f
44 changed files with 1320 additions and 309 deletions
+13
View File
@@ -0,0 +1,13 @@
from __future__ import annotations
from typing import Any, Dict, Sequence
def run_inspect_action(result: Any, args: Sequence[str], config: Dict[str, Any]) -> int:
"""Route metadata inspect to get-metadata implementation."""
from cmdlet.get_metadata import CMDLET as GET_METADATA_CMDLET
exec_fn = getattr(GET_METADATA_CMDLET, "exec", None)
if callable(exec_fn):
return int(exec_fn(result, args, config))
return int(GET_METADATA_CMDLET.run(result, args, config))