ReleasePackerProcessCommand.from constructor
ReleasePackerProcessCommand.from(})
Implementation
factory ReleasePackerProcessCommand.from(
Object command, {
String? stdoutFilePath,
String? stderrFilePath,
}) {
if (command is String) {
return ReleasePackerProcessCommand.inline(
command,
stdoutFilePath: stdoutFilePath,
stderrFilePath: stderrFilePath,
);
} else if (command is List) {
return ReleasePackerProcessCommand.fromList(
command,
stdoutFilePath: stdoutFilePath,
stderrFilePath: stderrFilePath,
);
} else {
throw ArgumentError("Unknown command type: $command");
}
}