Trait RepositoryContext

Source
pub trait RepositoryContext: Send + Sync {
    // Required methods
    fn detect_tech_stack<'life0, 'life1, 'async_trait>(
        &'life0 self,
        repo_path: &'life1 Path,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn detect_project_name<'life0, 'life1, 'async_trait>(
        &'life0 self,
        repo_path: &'life1 Path,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Provides context about a repository including auto-detection of tech stack and project name

Required Methods§

Source

fn detect_tech_stack<'life0, 'life1, 'async_trait>( &'life0 self, repo_path: &'life1 Path, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Detects the technology stack based on repository files

Source

fn detect_project_name<'life0, 'life1, 'async_trait>( &'life0 self, repo_path: &'life1 Path, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Detects the project name from the repository path

Implementors§