Skip to content

Suspending version of NoOpCliktCommand #554

@cmdjulian

Description

@cmdjulian

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions