ReleasePackerProcessCommand.from constructor

ReleasePackerProcessCommand.from(
  1. Object command, {
  2. String? stdoutFilePath,
  3. String? stderrFilePath,
})

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");
  }
}