Function handle_project_config_command

Source
pub fn handle_project_config_command(
    common: &CommonParams,
    model: Option<String>,
    token_limit: Option<usize>,
    param: Option<Vec<String>>,
    print: bool,
) -> Result<()>
Expand description

Handle the ‘project-config’ command

Creates or updates a project-specific configuration file (.irisconfig) in the repository root. Project configurations allow teams to share common settings without sharing sensitive data like API keys.

§Security

API keys are never stored in project configuration files, ensuring that sensitive credentials are not accidentally committed to version control.

§Arguments

  • common - Common parameters from command line
  • model - Optional model to set for the selected provider
  • token_limit - Optional token limit to set
  • param - Optional additional parameters to set
  • print - Whether to just print the current project config

§Returns

Result indicating success or an error