1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

—listTemplates after parsing the build file.

This commit is contained in:
Cedric Beust 2017-02-20 07:59:40 -08:00
parent 1257b9b310
commit 891a8cdbee

View file

@ -100,12 +100,6 @@ private class Main @Inject constructor(
//
val pluginClassLoader = installCommandLinePlugins(args)
// --listTemplates
if (args.listTemplates) {
Templates().displayTemplates(pluginInfo)
return 0
}
if (args.client) {
client.run()
return 0
@ -165,15 +159,12 @@ private class Main @Inject constructor(
if (!buildFile.exists()) {
error(buildFile.path.toFile().path + " does not exist")
} else {
// DONOTCOMMIT
// val data = dependencyData.dependenciesDataFor(homeDir("kotlin/ktor/kobalt/src/Build.kt"), Args(),
// useGraph = true)
// println("Data: $data")
val allProjects = projectFinder.initForBuildFile(buildFile, args)
if (args.serverMode) {
if (args.listTemplates) {
// --listTemplates
Templates().displayTemplates(pluginInfo)
} else if (args.serverMode) {
// --server
val port = serverFactory.create(args.force, args.port,
{ buildFile -> projectFinder.initForBuildFile(BuildFile(Paths.get(buildFile),