pub async fn run<R, W, Res>(
reader: R,
writer: W,
resolver: &Res,
tmp_dir: &Path,
) -> Result<(), RunError>Expand description
Drive the LFS REPL until stdin closes or terminate arrives.
tmp_dir is the destination directory for downloads
(<git-dir>/lfs/tmp).
ยงErrors
Returns RunError::StdinClosed if stdin closes before the first event,
RunError::MalformedEvent for unparseable JSON, or
RunError::InitNotFirst if the first event is not init.
Transport or serialisation errors from upload/download operations surface
as RunError::Io or RunError::Agent.