buildPatchCommand method

String buildPatchCommand(
  1. ShorebirdCommandConfig config
)

Builds a patch command string from the provided configuration.

Parameters:

  • config: The command configuration (Android or iOS)

Returns:

  • A complete Shorebird patch command string

Throws:

Implementation

String buildPatchCommand(ShorebirdCommandConfig config) {
  logDebug('Building patch command for ${config.runtimeType}');

  if (config is AndroidCommandConfig) {
    return _buildAndroidPatchCommand(config);
  } else if (config is IosCommandConfig) {
    return _buildIosPatchCommand(config);
  } else {
    throw ArgumentError(
        'Unsupported configuration type for patch: ${config.runtimeType}');
  }
}