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

Function _explain_prefix

explainshell/web/views.py:35–39  ·  view source on GitHub ↗

Return the URL prefix for explain routes, with or without distro.

(distro, release)

Source from the content-addressed store, hash-verified

33
34
35def _explain_prefix(distro, release):
36 """Return the URL prefix for explain routes, with or without distro."""
37 if distro and release:
38 return f"/explain/{distro}/{release}"
39 return "/explain"
40
41
42def _get_distro_release(url_distro=None, url_release=None):

Callers 2

inject_distrosFunction · 0.85
_handle_explain_cmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected