Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ReloadCmd = &cobra.Command{
Use: "reload",
Short: "Reload configuration",
Long: "\nReload the configuration file and apply changes to running daemon.\n\n" +
"This command validates the new configuration and applies hot-reloadable " +
"changes to the daemon if it is running. If the daemon is not running, " +
"the configuration is validated and the next daemon start will use the new settings.\n\n" +
"Hot-reloadable settings:\n" +
"- Claude API settings (key, model, tokens, vision, timeout)\n" +
"- Worker pool size and rate limits\n" +
"- Debounce interval\n" +
"- Log level\n" +
"- Health check port\n" +
"- Rebuild interval\n" +
"- Skip patterns\n\n" +
"Settings that require daemon restart:\n" +
"- memory.root\n" +
"- semantic.cache_dir\n" +
"- daemon.log_file",
Example: ` # Reload configuration
memorizer config reload
# Check what's changed without applying
memorizer config validate`,
PreRunE: validateReload,
RunE: runReload,
}
View Source
var ShowSchemaCmd = &cobra.Command{
Use: "show-schema",
Short: "Show all configuration settings",
Long: "\nDisplay complete configuration schema including minimal and advanced settings.\n\n" +
"This command shows all possible configuration options with their types, defaults, " +
"and whether they appear in the initialized config file. Use this to discover " +
"advanced settings not shown during initialization.",
Example: ` # Show schema in text format
memorizer config show-schema
# Show schema in YAML format with examples
memorizer config show-schema --format yaml
# Show only advanced (hidden) settings
memorizer config show-schema --advanced-only`,
PreRunE: validateShowSchema,
RunE: runShowSchema,
}
View Source
var ValidateCmd = &cobra.Command{
Use: "validate",
Short: "Validate configuration file",
Long: "\nValidate the configuration file for errors.\n\n" +
"Performs comprehensive validation including:\n" +
"- Required fields are present\n" +
"- Values are within valid ranges\n" +
"- Paths are safe and accessible\n" +
"- Enums have valid values\n" +
"- Cross-field dependencies are satisfied",
Example: ` # Validate current configuration
memorizer config validate
# Validate and show full config in YAML
memorizer config validate --format yaml
# Validate and show full config in JSON
memorizer config validate --format json`,
PreRunE: validateValidate,
RunE: runValidate,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.