Skip to main content

get_bean

Function get_bean 

Source
pub fn get_bean(beans_dir: &Path, id: &str) -> Result<Bean>
Expand description

Load a bean by ID.

Finds the bean file in the .beans/ directory and deserializes it. Works for both active and legacy bean formats.

ยงErrors

  • Bean ID is invalid
  • No bean file found for the given ID
  • File cannot be parsed