Skip to main content

surjection_core/remote/
mod.rs

1//! Remotes (SPEC 9.6 to 9.9): optional backup and sync targets for the
2//! store. None exists by default and none is privileged.
3//!
4//! - [`config`]: `state/remotes.toml`, machine-local.
5//! - [`folder`]: folder remotes, one subfolder per machine
6//!   (`repo-per-machine`, `mirror`, `archive`); pull merges every sibling
7//!   machine's head through [`crate::store::merge`].
8//! - [`git`]: git remotes through the system `git` CLI; [`credential`] is
9//!   the `auth = token` helper; [`gh`] the optional GitHub CLI
10//!   conveniences.
11//! - [`manifest`]: `machine.json` and `EXPORT.json`.
12//! - [`sync`]: push, pull and status of every remote alike, recorded in
13//!   `state/remote-status.toml`; [`restore`] is `restore --from`.
14//! - [`sync_artifacts`]: sync tool conflict and temp names, reported and
15//!   left alone.
16//! - [`unc`]: mapped drive letters resolved to UNC paths on Windows.
17
18pub mod config;
19pub mod credential;
20pub mod folder;
21pub mod gh;
22pub mod git;
23pub mod manifest;
24pub mod restore;
25pub mod sync;
26pub mod sync_artifacts;
27pub mod unc;