Skip to main content

handle_check_config_with

Function handle_check_config_with 

Source
pub fn handle_check_config_with<R: ConfigEnvironment>(
    colors: Colors,
    env: &R,
    verbose: bool,
) -> Result<bool>
Expand description

Handle the --check-config flag with a custom environment.

Validates all config files and displays effective merged settings. Returns error (non-zero exit) if validation fails.

§Arguments

  • colors - Terminal color configuration for output
  • env - Config environment for path resolution and file operations
  • verbose - Whether to display full merged configuration

§Returns

Returns Ok(true) if validation succeeded, or an error if validation failed.

§Errors

Returns error if the operation fails.