Expand description
Manual source, query, and output engine independent from its process hosts.
Structs§
- Command
Output - Minimal subprocess result used by deterministic source-locator tests.
- Manual
Request - One validated manual lookup independent from CLI token syntax.
- Markdown
Options - Markdown serialization controls that do not alter the query AST.
- Parsed
Markdown - Complete result of parsing one ManT-flavoured Markdown input.
- Query
Policy - Host execution policy kept outside the serialized request contract.
- System
Command Runner - Production runner backed by
std::process::Command. - Tldr
Page Location - Source identity attached to a parsed tldr page.
Enums§
- Host
Platform - Native host families supported by
ManTdistributions. - Locate
Error - Expected source-discovery failures suitable for a user-facing CLI error.
- Markdown
Parse Error - Invalid structure in
ManT’s optional top-level Markdown extension. - Projection
Error - Failure to derive an addressable view from a complete query.
- Query
Error - A query cannot produce either authoritative manual content or a quick reference.
- Search
Error - Invalid search input or matcher construction.
- Tldr
Cache Error - Offline cache discovery or page-read failure.
- Tldr
Directive Error - Tldr
Parse Error - A tldr page lacks the minimum structure required by the contract.
- Tldr
Update Error - Failure to refresh an installed client or
ManT’s private checkout.
Constants§
- MAX_
MARKDOWN_ BYTES - Upper bound on a single Markdown source, shared by every input path.
Traits§
- Command
Runner - Injectable boundary around process execution.
Functions§
- build_
outline - Build a block-free, addressable outline for one complete query.
- build_
outline_ with_ detail - Build an outline with optional semantic definition entries.
- get_
system_ tldr_ cache_ dirs - Return known installed-client cache roots in priority order.
- get_
tldr_ cache_ dir - Resolve the
ManT-owned fallback checkout for an explicit environment. - get_
tldr_ languages - Resolve locale candidates, retaining first occurrence priority.
- get_
tldr_ platforms - Resolve host, common, then cross-platform fallback page directories.
- get_
tldr_ read_ cache_ dirs - Select installed-client caches or
ManT’s private fallback checkout. - locate_
manual_ source - Locate a manual through the host’s configured man database.
- locate_
manual_ source_ with - Injectable form of
locate_manual_sourceused by native unit tests. - lower_
mandoc_ document - Convert a completed low-level parse into the stable document contract.
- native_
api_ version - Reports the native contract version through the engine layer.
- normalize_
tldr_ topic - Convert a multi-word query to the tldr filename convention.
- parse_
groff_ html - Normalize one complete
man -Thtmldocument intoManT’s stable AST. - parse_
manual_ source - Parse and normalize one located man or mdoc source file.
- parse_
markdown - Split
ManT’s optional leading tldr directive from the Markdown document. - parse_
tldr_ command - Parse the tldr placeholder extension and choose the long option variant.
- parse_
tldr_ page - Parse one tldr Markdown page without performing any I/O.
- query
- Query the local man database and optional offline tldr caches.
- query_
markdown_ text - Parse in-memory Markdown for the direct
mant -command. - query_
with_ policy - Query with an explicit host policy such as native-parser-only diagnostics.
- read_
cached_ tldr_ page - Read one cached tldr page using current host conventions; never updates it.
- render_
excerpt_ json - Serialize selected query nodes in compact or human-readable form.
- render_
excerpt_ markdown - Render selected query nodes with their outline context.
- render_
excerpt_ markdown_ with_ options - Render selected nodes using explicit presentation-only options.
- render_
excerpt_ text - Render selected query nodes as unstyled text with outline context.
- render_
markdown - Render a complete query as clean Markdown without a trailing newline.
- render_
markdown_ with_ options - Render a complete query using explicit presentation-only options.
- render_
outline_ json - Serialize a complete query outline in compact or human-readable form.
- render_
outline_ markdown - Render a complete query outline as a nested
CommonMarklist. - render_
outline_ text - Render a complete query outline as a copyable Unicode tree.
- render_
query_ json - Serialize a query contract in compact or human-readable form.
- render_
query_ man - Render the manual as
man(1)-faithful plain text. - render_
query_ text - Render a complete query without Markdown or terminal escape sequences.
- render_
search_ json - Serialize structure-aware search results in compact or human-readable form.
- render_
search_ markdown - Render a readable Markdown report whose coordinates target the full page.
- render_
search_ text - Render grep-like results with stable Markdown coordinates and node paths.
- render_
update_ json - Serialize the explicit tldr update result for a process boundary.
- search_
query - Search one complete query and report coordinates in its canonical Markdown.
- select_
excerpt - Select tldr, document-root content, or complete section subtrees by path or ID.
- update_
tldr_ cache - Refresh tldr through an installed client or
ManT’s private Git checkout. - validate_
search_ query - Validate search limits and compile its matcher without loading a manual.