Function generate_context_with_config

Source
pub async fn generate_context_with_config(config: Config) -> Result<()>
Expand description

Generates repository context with custom configuration

§Arguments

  • config - Custom configuration

§Example

use ai_context_gen::{Config, generate_context_with_config};
use std::path::PathBuf;

let config = Config {
    repo_path: PathBuf::from("./my-project"),
    max_tokens: 100000,
    output_file: "detailed_context.md".to_string(),
    include_hidden: true,
    include_deps: true,
};

generate_context_with_config(config).await?;