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
+14 -1
View File
@@ -89,7 +89,20 @@ def _load_root_modules() -> None:
def _load_helper_modules() -> None:
# Provider-specific module pre-loading removed; providers are loaded lazily
# through ProviderCore.registry when first referenced.
pass
#
# Keep explicit imports for cmdlets that were moved under cmdlet/file so they
# remain registered under their legacy command names (add-note/add-url/add-relationship).
for mod in (
".file.add_note",
".file.add_url",
".file.add_relationship",
".metadata.get_note",
".metadata.get_relationship",
):
try:
_import_module(mod, __name__)
except Exception as exc:
print(f"Error importing cmdlet helper '{mod}': {exc}", file=sys.stderr)
def _register_native_commands() -> None: