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

Function _make_manpage

tests/test_store.py:29–39  ·  view source on GitHub ↗

Helper to build a ParsedManpage with the conventional source path.

(name, section, aliases=None, distro="ubuntu", release="26.04")

Source from the content-addressed store, hash-verified

27
28
29def _make_manpage(name, section, aliases=None, distro="ubuntu", release="26.04"):
30 """Helper to build a ParsedManpage with the conventional source path."""
31 source = f"{distro}/{release}/{section}/{name}.{section}.gz"
32 if aliases is None:
33 aliases = [(name, 10)]
34 return ParsedManpage(
35 source=source,
36 name=name,
37 synopsis=f"{name} - do things",
38 aliases=aliases,
39 )
40
41
42class TestFindManpageScoring:

Calls 1

ParsedManpageClass · 0.90

Tested by

no test coverage detected