Module format_info

Module format_info 

Source
Expand description

Metadata lookup and formatting for registered document and stream formats.

Structs§

FormatInfo
Detailed metadata record for a format from format category CSV files.

Traits§

FormatInfoOptionExt
Extension trait allowing .get_primary_extension() on Option<&'static FormatInfo>.

Functions§

describe_format
Formats detailed metadata for a short Format ID.
format_categorized_help_table
Generates a categorized, alphabetically sorted help table of supported formats showing both CLI nicknames and Rust FormatId names alongside their descriptions. Versioned format types are grouped indented under their base format with the default indicated.
format_help_table
Generates a help table of supported formats and their shorthand aliases for CLI after_help text.
get_format_info
Look up a FormatInfo record by short Format ID.
get_format_info_by_id
Look up a FormatInfo record by FormatId.
infer_decompressed_path
Infers the output file path when decompressing without an explicit output path. Checks registered extension rules for compression formats (longest extensions first) and strips the matched extension, or appends .decompressed if none is recognized.
strip_format_extension
Strips an extension belonging to the given FormatId from the input path.