Add a convenience method in `SpawnBuilder` to add multiple `ActionInput`
outputs in one call.
@@ -139,6 +139,13 @@ public final class SpawnBuilder {
return withOutput(ActionInputHelper.fromPath(name));
}
+ public SpawnBuilder withOutputs(ActionInput... outputs) {
+ for (ActionInput output : outputs) {
+ withOutput(output);
+ }
+ return this;
+ }
+
public SpawnBuilder withOutputs(String... names) {
for (String name : names) {
this.outputs.add(ActionInputHelper.fromPath(name));
