Skip to main content

RepoArchetype

Trait RepoArchetype 

Source
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§

Source

fn name(&self) -> &'static str

Unique identifier for this archetype

Source

fn description(&self) -> &'static str

Human-readable description

Source

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.

Source

fn capabilities(&self) -> CapabilitySet

Capabilities this archetype enables

Implementors§