Expand description
Configuration module.
Resolves runtime configuration from three sources with the following precedence:
- CLI arguments (highest priority).
- Environment variables (set in the process environment).
$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:
Config::load_indexerfor knot-indexer (indexing operations)Config::load_mcpfor knot-mcp (MCP server)
Structs§
- Config
- Resolved, validated configuration used throughout the application.
- Indexer
Cli - 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.