pub struct Linker { /* private fields */ }Expand description
Performs the synchronization of agent configurations
Implementations§
Source§impl Linker
impl Linker
Sourcepub fn new(config: Config, config_path: PathBuf) -> Self
pub fn new(config: Config, config_path: PathBuf) -> Self
Create a new linker from a configuration
Sourcepub fn project_root(&self) -> &Path
pub fn project_root(&self) -> &Path
Get the project root path
Sourcepub fn sync(&self, options: &SyncOptions) -> Result<SyncResult>
pub fn sync(&self, options: &SyncOptions) -> Result<SyncResult>
Perform the sync operation
Sourcepub fn clean(&self, options: &SyncOptions) -> Result<SyncResult>
pub fn clean(&self, options: &SyncOptions) -> Result<SyncResult>
Clean all symlinks managed by this configuration
Sourcepub fn sync_mcp(&self, dry_run: bool) -> Result<McpSyncResult>
pub fn sync_mcp(&self, dry_run: bool) -> Result<McpSyncResult>
Sync MCP configurations for all enabled agents
Auto Trait Implementations§
impl !Freeze for Linker
impl !RefUnwindSafe for Linker
impl Send for Linker
impl !Sync for Linker
impl Unpin for Linker
impl UnwindSafe for Linker
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