Split host setup into explicit entity actions

This commit is contained in:
deytenit committed 2026-11-07 17:15:49 +03:00
1 parent 9d733a8f5d
commit e452c981aa
51 files changed
+1023 -275

No files matched your search

+3 -1
View File
@@ -28,7 +28,7 @@ def _resolve_layout():
def _print_list(commons_actions, prop_actions):
print("Usage: apex <group>/<action> [args...]\n\nAvailable actions:")
print("Usage: apex <entity>/<action> [args...]\n\nAvailable actions:")
tag = {"commons": "", "local": " (local)", "override": " (local override)"}
for i in overlay.discover(commons_actions, prop_actions):
mark = f" [DISABLED: {i.disabled}]" if i.disabled else ""
@@ -44,6 +44,8 @@ def main(argv) -> int:
return 0
name, rest = argv[0], argv[1:]
if name == "compose":
name = "composition/run"
r = overlay.resolve(name, commons_actions, prop_actions)
if r is None:
sys.stderr.write(f"[global] [core] [ERROR] Unknown action: {name}\n")