mirror of
https://github.com/apple/pkl.git
synced 2026-03-20 16:23:57 +01:00
Make CliktCommands classes (#963)
Missed these three classes. This prevents the AOT compiler from statically initializing CLI argument default values (like working dir).
This commit is contained in:
@@ -32,11 +32,11 @@ class AnalyzeCommand :
|
||||
epilog = "For more information, visit $helpLink",
|
||||
) {
|
||||
init {
|
||||
subcommands(AnalyzeImportsCommand)
|
||||
subcommands(AnalyzeImportsCommand())
|
||||
}
|
||||
}
|
||||
|
||||
object AnalyzeImportsCommand :
|
||||
class AnalyzeImportsCommand :
|
||||
ModulesCommand(
|
||||
name = "imports",
|
||||
helpLink = helpLink,
|
||||
|
||||
@@ -28,10 +28,10 @@ import org.pkl.core.Release
|
||||
|
||||
/** Main method for the Java code generator CLI. */
|
||||
internal fun main(args: Array<String>) {
|
||||
cliMain { PklJavaCodegenCommand.main(args) }
|
||||
cliMain { PklJavaCodegenCommand().main(args) }
|
||||
}
|
||||
|
||||
object PklJavaCodegenCommand :
|
||||
class PklJavaCodegenCommand :
|
||||
ModulesCommand(
|
||||
name = "pkl-codegen-java",
|
||||
helpLink = Release.current().documentation().homepage(),
|
||||
|
||||
@@ -31,10 +31,10 @@ import org.pkl.core.Release
|
||||
|
||||
/** Main method for the Kotlin code generator CLI. */
|
||||
internal fun main(args: Array<String>) {
|
||||
cliMain { PklKotlinCodegenCommand.main(args) }
|
||||
cliMain { PklKotlinCodegenCommand().main(args) }
|
||||
}
|
||||
|
||||
object PklKotlinCodegenCommand :
|
||||
class PklKotlinCodegenCommand :
|
||||
ModulesCommand(
|
||||
name = "pkl-codegen-kotlin",
|
||||
helpLink = Release.current().documentation().homepage(),
|
||||
|
||||
Reference in New Issue
Block a user