Skip to main content

Module config

Module config 

Source
Expand description

Configuration module.

Resolves runtime configuration from three sources with the following precedence:

  1. CLI arguments (highest priority).
  2. Environment variables (set in the process environment).
  3. $HOME/.config/knot/.env (lowest priority — loaded from knot’s XDG-style config directory, never from the current working directory).

Provides specialized loaders for different binaries:

Structs§

Config
Resolved, validated configuration used throughout the application.
IndexerCli
Command-line arguments for knot-indexer. Includes all options for indexing, file watching, and query customization.
McpCli
Command-line arguments for knot-mcp. Only includes options necessary for the MCP server to connect to databases.

Enums§

OutputFormat