buildCommand method

  1. @override
String buildCommand()
override

Builds the command string for execution.

This method should construct the complete Shorebird command string based on the service configuration. Subclasses must implement this method to define their specific command structure.

Returns:

  • A complete command string ready for execution

Implementation

@override
String buildCommand() {
  if (config is AndroidCommandConfig) {
    return _buildAndroidPatchCommand(config as AndroidCommandConfig);
  } else if (config is IosCommandConfig) {
    return _buildIosPatchCommand(config as IosCommandConfig);
  } else {
    throw ArgumentError(
        'Unsupported configuration type: ${config.runtimeType}');
  }
}