pub fn format(
file: Option<&PathBuf>,
schema: Option<MtreeSchema>,
format: OutputFormat,
pretty: bool,
) -> Result<(), Error>
Expand description
Parse a given file and output it in the specified format to 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.