pub fn detect_encoding_command_with_config(
args: DetectEncodingArgs,
_config_service: &dyn ConfigService,
) -> Result<()>
Expand description
Execute encoding detection command with injected configuration service.
This function provides the new dependency injection interface for the detect_encoding command, accepting a configuration service instead of loading configuration globally.
§Arguments
file_paths
- File paths to analyze for encoding detectionverbose
- Whether to show verbose outputconfig_service
- Configuration service providing access to settings
§Returns
Returns Ok(())
on successful completion, or an error if detection fails.