Add configurable rules directory support

- Add rules configuration option to ClientConfig
- Support custom rules file paths via config and CLI
- Add --rules-dir option to init command
- Update Rules struct to accept custom file paths
- Add helper functions for rules path resolution
- Fix doc comment formatting issues
- Add integration tests for custom rules paths
This commit is contained in:
Jeremiah Russell
2025-10-21 22:04:33 +01:00
committed by Jeremiah Russell
parent e914e492e8
commit d4cc2621db
4 changed files with 29 additions and 28 deletions

View File

@@ -342,6 +342,7 @@ impl RulesCli {
/// - **Rules CLI**: To load rules before configuration or execution
/// - **Main CLI**: For default rule execution when no subcommand is specified
/// - **Validation systems**: To verify rule configuration integrity
///
/// Loads rules from the default location.
pub fn get_rules() -> Result<Rules> {
get_rules_from(None)