cartulary 0.3.0-alpha.1

The knowledge layer of your project — decisions, issues, docs, all in one place.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Read/write boundary for the [`run_fmt`](super::run::run_fmt) loop.
//! Adapters wrap the actual storage (filesystem today; in-memory
//! stub for tests; archive/remote tomorrow). The use case stays
//! free of [`std::fs`].

use std::path::Path;

pub trait RawTextReader {
    fn read(&self, path: &Path) -> anyhow::Result<String>;
}

pub trait RawTextWriter {
    fn write(&self, path: &Path, content: &str) -> anyhow::Result<()>;
}