pub async fn execute_with_config(
args: SyncArgs,
config_service: Arc<dyn ConfigService>,
) -> Result<()>Expand description
Execute audio-subtitle synchronization with injected configuration service.
This function provides the new dependency injection interface for the sync command, accepting a configuration service instead of loading configuration globally.
§Arguments
args- Synchronization arguments including video/subtitle paths and thresholdsconfig_service- Configuration service providing access to sync settings
§Returns
Returns Ok(()) on successful completion, or an error if synchronization fails.