mirror of https://github.com/sbt/sbt.git
accept arguments for scripts
This commit is contained in:
parent
f022f5057f
commit
f94ab145b5
|
|
@ -33,7 +33,8 @@ object Script
|
|||
val append = Load.transformSettings(Load.projectScope(currentRef), currentRef.build, rootProject, scriptSettings ++ embeddedSettings)
|
||||
|
||||
val newStructure = Load.reapply(session.original ++ append, structure)
|
||||
val newState = "run" :: state.copy(remainingCommands = state.remainingCommands.drop(1))
|
||||
val arguments = state.remainingCommands.drop(1)
|
||||
val newState = arguments.mkString("run ", " ", "") :: state.copy(remainingCommands = Nil)
|
||||
Project.setProject(session, newStructure, newState)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue