MCPcopy Index your code
hub / github.com/idank/explainshell / has_manpage_source

Method has_manpage_source

explainshell/store.py:256–261  ·  view source on GitHub ↗

Return whether *source* exists in parsed_manpages.

(self, source: str)

Source from the content-addressed store, hash-verified

254 return results
255
256 def has_manpage_source(self, source: str) -> bool:
257 """Return whether *source* exists in parsed_manpages."""
258 row = self._conn.execute(
259 "SELECT 1 FROM parsed_manpages WHERE source = ? LIMIT 1", (source,)
260 ).fetchone()
261 return row is not None
262
263 def delete_manpage(self, source: str) -> bool:
264 """Delete a manpage and its mappings (via CASCADE) from the store.

Callers 4

extractFunction · 0.95
classifyMethod · 0.45

Calls

no outgoing calls