pub struct SkillRegistry { /* private fields */ }Expand description
Registry of installed skills.
Implementations§
Source§impl SkillRegistry
impl SkillRegistry
Sourcepub fn default_dir() -> PathBuf
pub fn default_dir() -> PathBuf
Get the default skills directory (~/.mur/skills/).
Sourcepub fn list(&self) -> Result<Vec<InstalledSkill>>
pub fn list(&self) -> Result<Vec<InstalledSkill>>
List all installed skills.
Sourcepub fn install_local(&self, source_dir: &Path) -> Result<InstalledSkill>
pub fn install_local(&self, source_dir: &Path) -> Result<InstalledSkill>
Install a skill from a local directory.
Sourcepub fn install_community(&self, name: &str) -> Result<InstalledSkill>
pub fn install_community(&self, name: &str) -> Result<InstalledSkill>
Install a skill by name from the community repository.
Auto Trait Implementations§
impl Freeze for SkillRegistry
impl RefUnwindSafe for SkillRegistry
impl Send for SkillRegistry
impl Sync for SkillRegistry
impl Unpin for SkillRegistry
impl UnsafeUnpin for SkillRegistry
impl UnwindSafe for SkillRegistry
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