alpm_mtree::commands

Function parse

Source
pub fn parse(
    file: Option<&PathBuf>,
    schema: Option<MtreeSchema>,
) -> Result<Mtree, Error>
Expand description

Parse and interpret an MTREE file.

  1. Reads the contents of a file or stdin.
  2. Check whether the input is gzip compressed as that’s how it’s delivered inside of packages.
  3. Parse the input

NOTE: If a command is piped to this process, the input is read from stdin. See IsTerminal for more information about how terminal detection works.

§Errors