blob: 3ffaf21a72b91d05973cd9f8a1fd72a654e5007c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package cbt
trait CommandLineOverrides extends DynamicOverrides{
def `with`: Any = {
lib.callReflective(
newBuild[DynamicOverrides](
context.copy(
args = context.args.drop(2)
)
)( s"""
${context.args.lift(0).getOrElse("")}
""" ),
context.args.lift(1) orElse Some("void"),
context
)
}
def eval = {
lib.callReflective(
newBuild[CommandLineOverrides](
context.copy(
args = ( context.args.lift(0).map("println{ "+_+" }") ).toSeq
)
){""},
Some("with"),
context
)
}
}
|