Skip to content

Suspending Version of CompletionCommand #553

Closed
@cmdjulian

Description

Hey,
I'm a bit unsure how to integrate a SuspendingCliktCommand with CompletionCommand. When having something like the following:

object EtaDeploy : SuspendingCliktCommand() {
    init {
        subcommands(
            CompletionCommand(name = "completion")
        )
    }

    override suspend fun run() {
        ...
    }
}

subcommand only accepts suspending commands. Is there a way I can still integrate it?

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