pub struct Installer { /* private fields */ }Implementations§
Source§impl Installer
impl Installer
pub fn new(base_dir: PathBuf) -> Self
Sourcepub fn resolve_target(
&self,
target: Option<&Path>,
global: bool,
) -> Result<PathBuf>
pub fn resolve_target( &self, target: Option<&Path>, global: bool, ) -> Result<PathBuf>
Get target directory (either project/.claude or global ~/.claude)
Sourcepub fn install(
&self,
profile: &Profile,
target: &Path,
force: bool,
dry_run: bool,
no_prefix: bool,
on_file: FileCallback<'_>,
) -> Result<InstallResult>
pub fn install( &self, profile: &Profile, target: &Path, force: bool, dry_run: bool, no_prefix: bool, on_file: FileCallback<'_>, ) -> Result<InstallResult>
Install a profile to target
Sourcepub fn diff(&self, profile: &Profile, target: &Path) -> Result<DiffResult>
pub fn diff(&self, profile: &Profile, target: &Path) -> Result<DiffResult>
Compare profile with installed files
Auto Trait Implementations§
impl Freeze for Installer
impl RefUnwindSafe for Installer
impl Send for Installer
impl Sync for Installer
impl Unpin for Installer
impl UnwindSafe for Installer
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