pub struct WorkspaceManager;Implementations§
Source§impl WorkspaceManager
impl WorkspaceManager
Sourcepub fn status(workspace_name: &str) -> Result<Vec<WorkspaceRepoStatus>>
pub fn status(workspace_name: &str) -> Result<Vec<WorkspaceRepoStatus>>
Status of every repo in the workspace. Per-repo failures land in
the entry’s error field instead of aborting the sweep.
Sourcepub fn save(
workspace_name: &str,
message: &str,
all: bool,
on_repo: impl FnMut(&WorkspaceSaveResult),
) -> Result<Vec<WorkspaceSaveResult>>
pub fn save( workspace_name: &str, message: &str, all: bool, on_repo: impl FnMut(&WorkspaceSaveResult), ) -> Result<Vec<WorkspaceSaveResult>>
Commit pending changes in every repo of the workspace. on_repo
fires as each repo finishes so callers can stream progress (CLI
prints a line, the IDE emits an event).
Sourcepub fn sync(
workspace_name: &str,
force: bool,
on_repo: impl FnMut(&WorkspaceSyncResult),
) -> Result<Vec<WorkspaceSyncResult>>
pub fn sync( workspace_name: &str, force: bool, on_repo: impl FnMut(&WorkspaceSyncResult), ) -> Result<Vec<WorkspaceSyncResult>>
Pull + push every repo of the workspace. on_repo fires as each
repo finishes so callers can stream progress.
Sourcepub fn list() -> Result<Vec<WorkspaceListEntry>>
pub fn list() -> Result<Vec<WorkspaceListEntry>>
Every configured workspace with the on-disk existence of its repos.
Sourcepub fn add(workspace: &str, repo_path: &str) -> Result<PathBuf>
pub fn add(workspace: &str, repo_path: &str) -> Result<PathBuf>
Register a repo in a workspace. Returns the expanded path.
pub fn remove(workspace: &str, repo_path: &str) -> Result<()>
pub fn delete(workspace: &str) -> Result<()>
Auto Trait Implementations§
impl Freeze for WorkspaceManager
impl RefUnwindSafe for WorkspaceManager
impl Send for WorkspaceManager
impl Sync for WorkspaceManager
impl Unpin for WorkspaceManager
impl UnsafeUnpin for WorkspaceManager
impl UnwindSafe for WorkspaceManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more