agent-team-mail 1.2.0

CLI for local agent team mail workflows.
1
2
3
4
5
6
7
8
9
10
use anyhow::Result;
use atm_core::boundary::RosterStore;
use atm_core::error::AtmError;
use atm_daemon_bootstrap::with_default_roster_store;

pub(crate) fn with_retained_roster_store<T>(
    f: impl FnOnce(&(dyn RosterStore + Send + Sync)) -> Result<T, AtmError>,
) -> Result<T> {
    with_default_roster_store(f).map_err(Into::into)
}