pub trait RepoArchetype: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn description(&self) -> &'static str;
fn detect(&self, repo_path: &Path) -> bool;
fn capabilities(&self) -> CapabilitySet;
}Expand description
Trait for repository archetype detection
Implementations detect whether a repository matches a particular archetype based on file patterns (convention over configuration).
Required Methods§
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Human-readable description
Sourcefn detect(&self, repo_path: &Path) -> bool
fn detect(&self, repo_path: &Path) -> bool
Detect if a repository path matches this archetype
Should check for marker files/patterns without loading heavy data.
Sourcefn capabilities(&self) -> CapabilitySet
fn capabilities(&self) -> CapabilitySet
Capabilities this archetype enables