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

Method mp

tests/test_store.py:598–606  ·  view source on GitHub ↗
(name: str, distro: str, release: str, **kwargs)

Source from the content-addressed store, hash-verified

596 """Subcommand mappings should be created per distro, not cross-distro."""
597
598 def mp(name: str, distro: str, release: str, **kwargs) -> ParsedManpage:
599 source = f"{distro}/{release}/1/{name}.1.gz"
600 return ParsedManpage(
601 source=source,
602 name=name,
603 synopsis=f"{name} - do things",
604 aliases=[(name, 10)],
605 **kwargs,
606 )
607
608 # Two distros, each with gh + gh-cache.
609 store.add_manpage(

Callers

nothing calls this directly

Calls 1

ParsedManpageClass · 0.90

Tested by

no test coverage detected