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

Function _is_standard_manpath

tools/fetch_manned.py:419–428  ·  view source on GitHub ↗

Check if filename is under a standard man page directory. Matches manned.org's is_standard_man_location() logic. Prefers man pages installed to standard paths over application-specific directories (e.g. fish, zsh).

(filename)

Source from the content-addressed store, hash-verified

417
418
419def _is_standard_manpath(filename):
420 """Check if filename is under a standard man page directory.
421
422 Matches manned.org's is_standard_man_location() logic. Prefers man pages
423 installed to standard paths over application-specific directories (e.g.
424 fish, zsh).
425 """
426 return filename.startswith("/usr/share/man/man") or filename.startswith(
427 "/usr/local/man/man"
428 )
429
430
431def _parse_date(s: str) -> tuple[int, int, int]:

Callers 1

select_content_idsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected