ShorebirdCommandBuilderService class
Service for building Shorebird command strings from configuration.
This service provides utility methods for constructing properly formatted Shorebird command strings based on different configuration types.
Usage
final builder = ShorebirdCommandBuilderService();
final androidConfig = AndroidCommandConfig(/* ... */);
final command = builder.buildReleaseCommand(androidConfig);
final iosConfig = IosCommandConfig(/* ... */);
final patchCommand = builder.buildPatchCommand(iosConfig);
- Mixed-in types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildPatchCommand(
ShorebirdCommandConfig config) → String - Builds a patch command string from the provided configuration.
-
buildReleaseCommand(
ShorebirdCommandConfig config) → String - Builds a release command string from the provided configuration.
-
logCommand(
String command) → void -
Logs the command that is about to be executed.
inherited
-
logCommandComplete(
String commandName, Duration duration) → void -
Logs the completion of a command execution.
inherited
-
logCommandStart(
String commandName, String flavor) → void -
Logs the start of a command execution.
inherited
-
logDebug(
String message) → void -
Logs debug information (only when debug mode is enabled).
inherited
-
logError(
String message) → void -
Logs an error message.
inherited
-
logInfo(
String message, {String prefix = 'Info'}) → void -
Logs an informational message.
inherited
-
logSetup(
String component) → void -
Logs a setup step.
inherited
-
logStep(
String step) → void -
Logs a step in the execution process.
inherited
-
logSuccess(
String message) → void -
Logs a success message.
inherited
-
logValidation(
String item) → void -
Logs a validation step.
inherited
-
logWarning(
String message) → void -
Logs a warning message.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validateConfigForOperation(
ShorebirdCommandConfig config, String operation) → void - Validates that a command configuration is suitable for the operation.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited