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

Function _dr_prefix

explainshell/store.py:94–97  ·  view source on GitHub ↗

Extract 'distro/release/' prefix from a source path.

(source: str)

Source from the content-addressed store, hash-verified

92
93
94def _dr_prefix(source: str) -> str:
95 """Extract 'distro/release/' prefix from a source path."""
96 parts = source.split("/", 2)
97 return f"{parts[0]}/{parts[1]}/"
98
99
100class SubcommandMappingResult(NamedTuple):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected