buildReleaseCommand method
Builds a release command string from the provided configuration.
Parameters:
config: The command configuration (Android or iOS)
Returns:
- A complete Shorebird release command string
Throws:
- ArgumentError: If the configuration type is not supported
Implementation
String buildReleaseCommand(ShorebirdCommandConfig config) {
logDebug('Building release command for ${config.runtimeType}');
if (config is AndroidCommandConfig) {
return _buildAndroidReleaseCommand(config);
} else if (config is IosCommandConfig) {
return _buildIosReleaseCommand(config);
} else {
throw ArgumentError(
'Unsupported configuration type for release: ${config.runtimeType}');
}
}