feat: facts audit/extract/crm shebang wrappers (D14) (#19)
Tests / Test (push) Failing after 5s
Tests / Release (semver) (push) Skipped

Python stays the implementation. Commands are bin/facts/{audit,extract,crm}.go
like postgres/query.go.
This commit is contained in:
2026-08-13 21:20:28 +01:00
committed by GitHub
co-authored by GitHub
parent 54201d8c22
commit 2fede46dcd
7 changed files with 75 additions and 8 deletions
+7
View File
@@ -108,6 +108,13 @@ class BinLayoutTest(unittest.TestCase):
self.assertIn(frag, py)
self.assertIn("0.95", rank)
def test_facts_methods_are_shebangs(self) -> None:
for method in ("audit.go", "extract.go", "crm.go"):
self._assert_shebang(f"bin/facts/{method}")
text = (ROOT / "bin" / "facts" / method).read_text()
self.assertIn("cmdbin.ExecFile", text)
self.assertIn(f"bin/facts/{method.removesuffix('.go')}", text)
def test_mail_import_is_shebang_not_brain_write(self) -> None:
self._assert_shebang("bin/mail/import.go")
index_mail = (ROOT / "bin" / "mail" / "index_mail").read_text()