Module parse_man

Module parse_man 

Source
Expand description

For parsing command information from man pages

Modules§

error

Structs§

CmdPreInfo
Information about a command and its detected subcommands before being parsed

Functions§

detect_subcommands
Make a tree relating commands to their subcommands
get_cmd_name
Get the command that a manpage is for, given its path
parse_from
Take a CmdPreInfo representing the path to a command and its subcommands and try parsing that command and its subcommands. Also returns a list of errors encountered along the way.
parse_manpage_text
Parse flags from a man page, trying all of the different parsers and merging their results if multiple parsers could parse the man page.
read_manpage
Decompress a manpage if necessary

Type Aliases§

Result