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 expected_source_path(
&self,
source: &Path,
target: &TargetConfig,
) -> Option<PathBuf>
pub fn expected_source_path( &self, source: &Path, target: &TargetConfig, ) -> Option<PathBuf>
Resolve the expected source path for status checks.
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,
agents_filter: Option<&Vec<String>>,
) -> Result<McpSyncResult>
pub fn sync_mcp( &self, dry_run: bool, agents_filter: Option<&Vec<String>>, ) -> Result<McpSyncResult>
Sync MCP configurations for enabled agents
§Arguments
dry_run- Show what would be done without making changesagents_filter- Optional filter for specific agents (from CLI –agents or default_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 UnsafeUnpin 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