pub struct PluginRegistrar { /* private fields */ }Expand description
Plugin registrar for Claude Code
Implementations§
Source§impl PluginRegistrar
impl PluginRegistrar
Sourcepub fn has_plugin_features(profile_path: &Path) -> bool
pub fn has_plugin_features(profile_path: &Path) -> bool
Check if a profile has plugin features
Sourcepub fn get_plugin_features(profile_path: &Path) -> Vec<String>
pub fn get_plugin_features(profile_path: &Path) -> Vec<String>
Get list of plugin features in a profile
Sourcepub fn register_plugin(
&self,
profile_path: &Path,
_profile_name: &str,
scope: PluginScope,
target_dir: Option<&Path>,
) -> Result<PluginRegistrationResult>
pub fn register_plugin( &self, profile_path: &Path, _profile_name: &str, scope: PluginScope, target_dir: Option<&Path>, ) -> Result<PluginRegistrationResult>
Register a profile as a plugin
Sourcepub fn unregister_plugin(
&self,
profile_path: &Path,
scope: PluginScope,
target_dir: Option<&Path>,
) -> Result<bool>
pub fn unregister_plugin( &self, profile_path: &Path, scope: PluginScope, target_dir: Option<&Path>, ) -> Result<bool>
Unregister a profile plugin
Sourcepub fn list_plugins(
&self,
scope: PluginScope,
target_dir: Option<&Path>,
) -> Result<Vec<String>>
pub fn list_plugins( &self, scope: PluginScope, target_dir: Option<&Path>, ) -> Result<Vec<String>>
List all registered plugins for a scope
Auto Trait Implementations§
impl Freeze for PluginRegistrar
impl RefUnwindSafe for PluginRegistrar
impl Send for PluginRegistrar
impl Sync for PluginRegistrar
impl Unpin for PluginRegistrar
impl UnsafeUnpin for PluginRegistrar
impl UnwindSafe for PluginRegistrar
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