Skip to main content

index

Function index 

Source
pub async fn index(
    path: Option<PathBuf>,
    dry_run: bool,
    force: bool,
    global: bool,
    model: Option<ModelType>,
    cancel_token: CancellationToken,
) -> Result<()>
Expand description

Index a repository

§Arguments

  • path - Path to index (defaults to current directory)
  • dry_run - Preview what would be indexed without indexing
  • force - Delete existing index and rebuild from scratch
  • global - Create global index instead of local
  • model - Override embedding model
  • quiet - Suppress verbose output (for server/MCP mode)