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:
parent
1257b9b310
commit
891a8cdbee
1 changed files with 4 additions and 13 deletions
|
@ -100,12 +100,6 @@ private class Main @Inject constructor(
|
||||||
//
|
//
|
||||||
val pluginClassLoader = installCommandLinePlugins(args)
|
val pluginClassLoader = installCommandLinePlugins(args)
|
||||||
|
|
||||||
// --listTemplates
|
|
||||||
if (args.listTemplates) {
|
|
||||||
Templates().displayTemplates(pluginInfo)
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
if (args.client) {
|
if (args.client) {
|
||||||
client.run()
|
client.run()
|
||||||
return 0
|
return 0
|
||||||
|
@ -165,15 +159,12 @@ private class Main @Inject constructor(
|
||||||
if (!buildFile.exists()) {
|
if (!buildFile.exists()) {
|
||||||
error(buildFile.path.toFile().path + " does not exist")
|
error(buildFile.path.toFile().path + " does not exist")
|
||||||
} else {
|
} 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)
|
val allProjects = projectFinder.initForBuildFile(buildFile, args)
|
||||||
|
|
||||||
if (args.serverMode) {
|
if (args.listTemplates) {
|
||||||
|
// --listTemplates
|
||||||
|
Templates().displayTemplates(pluginInfo)
|
||||||
|
} else if (args.serverMode) {
|
||||||
// --server
|
// --server
|
||||||
val port = serverFactory.create(args.force, args.port,
|
val port = serverFactory.create(args.force, args.port,
|
||||||
{ buildFile -> projectFinder.initForBuildFile(BuildFile(Paths.get(buildFile),
|
{ buildFile -> projectFinder.initForBuildFile(BuildFile(Paths.get(buildFile),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue