mirror of
https://github.com/apple/pkl.git
synced 2026-05-05 06:34:21 +02:00
Turn CLI commands into objects, self register subcommands (#935)
Usages of `RootCommand` no longer need to initialize a new instance, nor register subcommands.
This commit is contained in:
@@ -34,10 +34,10 @@ import org.pkl.core.Release
|
||||
|
||||
/** Main method for the Pkldoc CLI. */
|
||||
internal fun main(args: Array<String>) {
|
||||
cliMain { DocCommand().main(args) }
|
||||
cliMain { DocCommand.main(args) }
|
||||
}
|
||||
|
||||
class DocCommand :
|
||||
object DocCommand :
|
||||
BaseCommand(name = "pkldoc", helpLink = Release.current().documentation().homepage()) {
|
||||
|
||||
private val modules: List<URI> by
|
||||
|
||||
Reference in New Issue
Block a user