execute_with_config

Function execute_with_config 

Source
pub async fn execute_with_config(
    args: ConfigArgs,
    config_service: Arc<dyn ConfigService>,
) -> SubXResult<()>
Expand description

Execute configuration management command with injected configuration service.

This function provides the new dependency injection interface for the config command, accepting a configuration service instead of loading configuration globally.

§Arguments

  • args - Configuration command arguments
  • config_service - Configuration service providing access to settings

§Returns

Returns Ok(()) on successful completion, or an error if the operation fails.