1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-29 17:38:12 -07:00

--resolve.

This commit is contained in:
Cedric Beust 2015-11-08 12:26:26 -08:00
parent 46eb67f668
commit 11c16b0ed1
4 changed files with 84 additions and 4 deletions

View file

@ -57,7 +57,8 @@ private class Main @Inject constructor(
val client: KobaltClient,
val server: KobaltServer,
val pluginInfo: PluginInfo,
val projectGenerator: ProjectGenerator) {
val projectGenerator: ProjectGenerator,
val resolveDependency: ResolveDependency) {
data class RunInfo(val jc: JCommander, val args: Args)
@ -140,6 +141,9 @@ private class Main @Inject constructor(
jc.usage()
} else if (args.serverMode) {
server.run()
} else if (args.dependency != null) {
// --resolve
resolveDependency.run(args.dependency as String)
} else {
if (! buildFile.exists()) {
error(buildFile.path.toFile().path + " does not exist")
@ -199,4 +203,3 @@ private class Main @Inject constructor(
}
}
}