I tried everything I could think of but running taskB still ends up with the error message that task is not defined either in */*:taskB
or in */cmd:taskB
if I put it in custom configuration.
Command.command("doStuff", Help.more("doStuff", "whatever")) {
(state: State) =>
val e = Project.extract(state)
val taskA = taskKey[Seq[String]]("A")
val taskB = taskKey[Seq[File]]("B")
val cmdConfig = config("cmd")
val newState = e.append(
inConfig(cmdConfig)(Seq(
taskA := {
// do stuff
},
taskB := {
// do stuff
}
)
)
, state
)
val result: (State, Seq[File]) = e.runTask(taskB in cmdConfig, newState)
)
When debugging it, it seems like the task are not present in structure.data
where it is searched for.