read_latest

Function read_latest 

Source
pub fn read_latest(
    journals: &mut Vec<Arc<Journal>>,
    aim_path: &Path,
) -> Result<String>
Expand description

Read the latest complete workflow version from an AIM file using its journal.

Loads journal entries via load_journal, seeks to the start offset of the newest Journal entry, and returns UTF-8 content from that offset to EOF.

Errors if the journal is empty, the file cannot be read, or content is not UTF-8.