Hello, noob question I created a kotlin project an...
# clikt
t
Hello, noob question I created a kotlin project and have this app/src/main/kotlin/Main.kt
Copy code
class Hello : CliktCommand() {
    val count: Int by option().int().default(1).help("Number of greetings")
    val name: String by option().prompt("Your name").help("The person to greet")

    override fun run() {
        repeat(count) {
            echo("Hello $name!")
        }
    }
}

fun main(args: Array<String>) = Hello().main(args)
source I can run it from intellij but how do I create the executable
./hello
?
I did
./gradlew installDist
which created
Copy code
./build/install/app/bin/app