ajalt / clikt

Multiplatform command line interface parsing for Kotlin
https://ajalt.github.io/clikt/
Apache License 2.0
2.56k stars 123 forks source link

Suspending version of `NoOpCliktCommand` #554

Closed cmdjulian closed 2 months ago

cmdjulian commented 2 months ago

Hey, In the blocking non-suspending world, we have the following NoOpCliktCommand command if we simply wanna use it as a container per se for different sub modules. Is there an equivalent for the suspending world? Something like the following for instance?

abstract class NoOpSuspendingCliktCommand(name: String? = null) : SuspendingCliktCommand(name) {
    override suspend fun run() = Unit
}

Thanks in advance :)