Skip to main content

put_back

Function put_back 

Source
fn put_back(
    run: &mut RunContext<'_>,
    key: &str,
    entry: &LedgerEntry,
    file: &LedgerFile,
    payload: Option<&Archive<'_>>,
) -> Result<Option<String>, ExecuteError>
Expand description

Restores what was at the file’s path before key wrote it, or returns why the file has to stay as it is.