pub struct WorktreeConfigManager { /* private fields */ }Expand description
Configuration manager for worktree settings
Implementations§
Source§impl WorktreeConfigManager
impl WorktreeConfigManager
pub fn new(workspace_config_path: PathBuf) -> Self
Sourcepub async fn load_config_for_repo(
&self,
repo_path: &Path,
) -> Result<WorktreeConfig>
pub async fn load_config_for_repo( &self, repo_path: &Path, ) -> Result<WorktreeConfig>
Load worktree configuration for a specific repository
Sourcepub async fn save_worktree_config(
&self,
global_config: Option<WorktreeConfig>,
repo_configs: Vec<(String, RepositoryWorktreeConfig)>,
) -> Result<()>
pub async fn save_worktree_config( &self, global_config: Option<WorktreeConfig>, repo_configs: Vec<(String, RepositoryWorktreeConfig)>, ) -> Result<()>
Save worktree configuration changes
Sourcepub async fn initialize_repo_config(
&self,
repo_name: &str,
repo_config: Option<RepositoryWorktreeConfig>,
) -> Result<()>
pub async fn initialize_repo_config( &self, repo_name: &str, repo_config: Option<RepositoryWorktreeConfig>, ) -> Result<()>
Initialize worktree configuration for a new repository
Sourcepub async fn migrate_legacy_config(&self) -> Result<bool>
pub async fn migrate_legacy_config(&self) -> Result<bool>
Migrate old configuration format to new format
Sourcepub async fn validate_all_configs(&self) -> Result<Vec<ConfigValidationError>>
pub async fn validate_all_configs(&self) -> Result<Vec<ConfigValidationError>>
Validate configuration across all repositories
Sourcepub async fn get_config_summary(&self) -> Result<ConfigSummary>
pub async fn get_config_summary(&self) -> Result<ConfigSummary>
Get configuration summary for diagnostics
Auto Trait Implementations§
impl Freeze for WorktreeConfigManager
impl RefUnwindSafe for WorktreeConfigManager
impl Send for WorktreeConfigManager
impl Sync for WorktreeConfigManager
impl Unpin for WorktreeConfigManager
impl UnsafeUnpin for WorktreeConfigManager
impl UnwindSafe for WorktreeConfigManager
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