pub struct Profile {
pub name: String,
pub path: PathBuf,
}Fields§
§name: String§path: PathBufImplementations§
Source§impl Profile
impl Profile
pub fn new(name: String, path: PathBuf) -> Self
Sourcepub fn list_files(&self) -> Result<Vec<PathBuf>>
pub fn list_files(&self) -> Result<Vec<PathBuf>>
List all files in the profile directory (relative paths) with default ignore config
Sourcepub fn list_files_with_config(
&self,
config: &IgnoreConfig,
) -> Result<Vec<PathBuf>>
pub fn list_files_with_config( &self, config: &IgnoreConfig, ) -> Result<Vec<PathBuf>>
List all files in the profile directory (relative paths) with custom ignore config
File collection logic:
- Build allowed filter: (DEFAULT_DIRS or plugin paths) + CLAUDE.md + include - exclude
- Walk all files and collect only those matching the filter
Sourcepub fn contents_summary(&self) -> String
pub fn contents_summary(&self) -> String
Get contents summary (e.g., “skills (5), commands (3)”)
Sourcepub fn contents_summary_with_config(&self, config: &IgnoreConfig) -> String
pub fn contents_summary_with_config(&self, config: &IgnoreConfig) -> String
Get contents summary with custom ignore config
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
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