Skip to main content

list

Function list 

Source
pub fn list(
    ctx: &Context,
    req: ListRequest,
) -> Result<Outcome<PantryContents>, CoreError>
Expand description

List the pantry, optionally narrowed to one section.

A filter that matches no section gives an empty list rather than an error: core reports what is there, and whether “you asked for a section that does not exist” deserves an error is the caller’s policy. The CLI treats it as one.

§Errors

As load.