alpm_srcinfo::commands

Function format_packages

Source
pub fn format_packages(
    file: Option<&PathBuf>,
    output_format: OutputFormat,
    architecture: Architecture,
    pretty: bool,
) -> Result<(), Error>
Expand description

Parses a SRCINFO file from a path or stdin and outputs it in the specified format on stdout.

ยงErrors

Returns an error if the input can not be parsed and validated, or if the output can not be formatted in the selected output format.