Skip to main content

export_decisions_to_string

Function export_decisions_to_string 

Source
pub fn export_decisions_to_string(
    database: &Database,
) -> Result<String, CliError>
Expand description

Read all decisions from database and serialise them as a pretty-printed JSON array. Matches the wire shape used by seshat decisions list --format json so a round-trip via decisions import is lossless.

Public seam for the integration / round-trip test.