Adjust to upstream change

This commit is contained in:
Eugene Yokota 2018-05-05 15:50:40 -04:00
parent 951eaa646f
commit 35e98f51fd
1 changed files with 5 additions and 8 deletions

View File

@ -233,14 +233,11 @@ object Cross {
args.command
} else {
args.command.map { rawCmd =>
parseCommand(rawCmd) match {
case Right(_) => rawCmd // A project is specified, run as is
case Left(cmd) =>
resolveAggregates(x)
.intersect(affectedRefs)
.collect { case ProjectRef(_, proj) => s"$proj/$cmd" }
.mkString("all ", " ", "")
}
val (aggs, aggCommand) = parseSlashCommand(x)(rawCmd)
aggs
.intersect(affectedRefs)
.map({ case ProjectRef(_, proj) => s"$proj/$aggCommand" })
.mkString("all ", " ", "")
}
}