Mountain/Command/SourceControlManagement.rs
1#![allow(non_snake_case)]
2
3//! # SourceControlManagement (Tauri command surface)
4//!
5//! Bridges SCM-viewlet UI requests from Sky to the
6//! `SourceControlManagementProvider` registry. Seven wire-bound
7//! commands, each in its own file (file name = Tauri command
8//! identifier per the Naming-Convention exception):
9//!
10//! - `GetAllSourceControlManagementState` - full snapshot of every provider,
11//! group, and resource.
12//! - `GetSCMResourceChanges` - per-provider resource list.
13//! - `ExecuteSCMCommand` - commit / push / pull dispatch (stub).
14//! - `GetSCMBranches` - branch picker data (stub).
15//! - `CheckoutSCMBranch` - switch working tree (stub).
16//! - `GetSCMCommitHistory` - Timeline-panel commit log (stub).
17//! - `StageSCMResource` - git add / unstage (stub).
18//!
19//! Errors propagate as `Result<Value, String>` for direct frontend
20//! display.
21//!
22//! VS Code reference:
23//! `vs/workbench/contrib/scm/common/scm.ts`,
24//! `vs/workbench/contrib/scm/browser/scmView.ts`,
25//! `vs/workbench/services/scm/common/scmService.ts`.
26//!
27//! ## Planned Work
28//!
29//! - Route every stub through the trait for progress reporting, cancellation,
30//! and proper error surfacing
31//! - Stash / merge / rebase operations
32//! - Multi-provider concurrency
33//! - Diff viewing and resource decoration
34//! - SCM input-box interactions
35
36pub mod CheckoutSCMBranch;
37
38pub mod ExecuteSCMCommand;
39
40pub mod GetAllSourceControlManagementState;
41
42pub mod GetSCMBranches;
43
44pub mod GetSCMCommitHistory;
45
46pub mod GetSCMResourceChanges;
47
48pub mod StageSCMResource;