Function generate_context

Source
pub async fn generate_context(path: PathBuf, output: String) -> Result<()>
Expand description

Generates repository context with default configuration

This is a convenience function that configures and executes the entire context generation process.

§Arguments

  • path - Path to the repository
  • output - Output file name

§Example

use ai_context_gen::generate_context;
use std::path::PathBuf;

generate_context(PathBuf::from("."), "context.md".to_string()).await?;