Hypergraph is more powerful. Transform unstructured text into structured knowledge with LLMs. Graphs, hypergraphs, and spatio-temporal extractions — with one command.
fix: list jsonld and cypher on the CLI banner
Frankie-Xu160be6ec08bf
diff --git a/hyperextract/cli/cli.py b/hyperextract/cli/cli.pyindex fffdea3..bef093e 100644--- a/hyperextract/cli/cli.py+++ b/hyperextract/cli/cli.py@@ -151,6 +151,14 @@ def main("he export csv <ka_path> -o <dir>","Export nodes/edges as CSV tables",),+ (+ "he export jsonld <ka_path> -o <file>",+ "Export pairwise graph to JSON-LD",+ ),+ (+ "he export cypher <ka_path> -o <file>",+ "Export graph to Cypher MERGE script",+ ),],),make_section(diff --git a/tests/cli/test_verbose.py b/tests/cli/test_verbose.pyindex 266f87e..067a187 100644--- a/tests/cli/test_verbose.py+++ b/tests/cli/test_verbose.py@@ -138,6 +138,20 @@ class TestCLINoVerboseFlag:assert "hyperedge" in result.outputassert "pairwise" in result.output+ def test_bare_he_banner_lists_jsonld_and_cypher_exports(self):+ """No-arg banner and `he export --help` both list JSON-LD and Cypher."""+ banner = runner.invoke(app, [])+ assert banner.exit_code == 0, banner.output+ assert "he export jsonld" in banner.output+ assert "he export cypher" in banner.output+ assert "JSON-LD" in banner.output+ assert "Cypher" in banner.output++ export_help = runner.invoke(app, ["export", "--help"])+ assert export_help.exit_code == 0, export_help.output+ assert "jsonld" in export_help.output+ assert "cypher" in export_help.output+def test_info_missing_ka_exits_with_error(self):"""he info <nonexistent> exits with error."""result = runner.invoke(app, ["info", "/nonexistent/path"])