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 indexingforce- Delete existing index and rebuild from scratchglobal- Create global index instead of localmodel- Override embedding modelquiet- Suppress verbose output (for server/MCP mode)