formatCommandArgs method
Creates a formatted command argument string.
This helper method formats command arguments properly for shell execution.
Parameters:
args: List of command arguments
Returns:
- A properly formatted argument string
Implementation
String formatCommandArgs(List<String> args) {
return args.where((arg) => arg.isNotEmpty).join(' ');
}