Expand description
Manual source, query, and output engine independent from its process hosts.
Structs§
- Available
Document - One document discoverable by name through the ordinary query boundary.
- Document
Resolver - One explicit local document-environment snapshot.
- Manual
Index - Immutable index shared by discovery and exact manual lookup.
- Manual
Page - One effective local manual page after path and locale precedence.
- 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 - Input-resolution policy kept outside the serialized request contract.
- Selector
Candidate - One stable qualification offered when a semantic alias is ambiguous.
- Tldr
Page Location - Source identity attached to a parsed tldr page.
Enums§
- Available
Document Kind - Source family used to resolve one available document.
- Available
Document Origin - Precedence class and storage family for one available document.
- Host
Platform - Native host families supported by
ManTdistributions. - Locate
Error - Expected source-discovery failures suitable for a user-facing CLI error.
- Manual
Error - Failure produced by
ManT’s source policy or by the underlying roff parser. - Manual
Error Kind - Stable category for a native manual failure.
- Manual
Load Error - Native-manual resolution or lowering failed after candidate selection.
- 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.
- Query
Execution Error - A valid request could not be loaded or projected.
- Query
View Result - Materialized result of the view carried by a
QueryRequest. - 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_
MANUAL_ BYTES - Upper bound on both the stored and decoded form of one manual source chain.
- MAX_
MARKDOWN_ BYTES - Upper bound on a single Markdown source, shared by every input path.
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.
- discover_
manual_ roots - Discover manual roots from explicit variables and platform conventions.
- execute_
query - Load and materialize the view encoded in one native request.
- 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 followed by
ManT’s private fallback. - list_
available_ documents - List every registered document candidate and locally indexed manual page.
- locate_
manual_ source_ in - Locate a manual in an explicit immutable index.
- 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_
manual_ page - Parse an indexed manual, resolving
.soredirects against its discovered manual hierarchy without falling back to the process working directory. - parse_
manual_ source - Parse and normalize one standalone man or mdoc source file.
- parse_
markdown - Split
ManT’s optional leading tldr preface 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.
- project_
query_ view - Materialize one view from an already loaded query.
- query_
markdown_ text - Parse in-memory Markdown for the direct
mant -command. - 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.
- resolve_
query - Query the local man database and optional offline tldr caches.
- resolve_
query_ with_ policy - Query with an explicit input-resolution policy.
- 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.
- select_
explanation - Select exactly one semantic entry by stable path, ID, or alias.
- update_
tldr_ cache - Refresh tldr through an installed client or
ManT’s private Git checkout. - validate_
query_ request - Validate all request and policy invariants before local I/O.
- validate_
search_ query - Validate search limits and compile its matcher without loading a manual.