Module cli_document

Module cli_document 

Source
Expand description

Reusable CLI document input and output argument structures with format and transformation selection.

Structs§

CliAutoDocumentInputArgs
CLI document input arguments supporting automatic format detection when --from is omitted.
CliDocumentInputArgs
CLI document input arguments defaulting to UTF-8 input format.
CliDocumentOutputArgs
CLI document output arguments with target format and transformation options.

Functions§

parse_supported_dc_input_format
Parses a CLI --from value into [SupportedDcInputFormat], accepting short nicknames, Rust FormatId names, or f<N> shorthands case-insensitively. On failure, returns a categorized, sorted list of supported formats with descriptions.
parse_supported_dc_output_format
Parses a CLI --to value into [SupportedDcOutputFormat], accepting short nicknames, Rust FormatId names, or f<N> shorthands case-insensitively. On failure, returns a categorized, sorted list of supported formats with descriptions.
parse_supported_dc_transformation
Parses a CLI --transform value into [SupportedDcTransformation], accepting short nicknames, Rust FormatId names, or f<N> shorthands case-insensitively. On failure, returns a categorized, sorted list of supported transformations with descriptions.