Skip to content

Support passing input events to CliktCommand.test - #626

Closed
mikaelstaldal wants to merge 2 commits into
ajalt:masterfrom
mikaelstaldal:patch-1
Closed

Support passing input events to CliktCommand.test#626
mikaelstaldal wants to merge 2 commits into
ajalt:masterfrom
mikaelstaldal:patch-1

Conversation

@mikaelstaldal

@mikaelstaldal mikaelstaldal commented Nov 13, 2025

Copy link
Copy Markdown

Fixes #625

Not sure if this may break binary compatibility?

@ajalt ajalt left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Please add @JvmOverloads to avoid breaking binary compatibility, and run gradlew apiDump to update the api spec.

@mikaelstaldal

mikaelstaldal commented Nov 14, 2025

Copy link
Copy Markdown
Author

Thanks! Please add @JvmOverloads to avoid breaking binary compatibility, and run gradlew apiDump to update the api spec.

For some reason the native build cross-compilation does not work for me:

Execution failed for task ':clikt:compileKotlinLinuxArm64'.
> Could not initialize class org.jetbrains.kotlin.backend.konan.env.env 

(I have Linux/amd64.)

Is it possible to do this without triggering native build? I don't use native builds with Kotlin/Gradle otherwise, only JVM.

@ajalt

ajalt commented Jan 16, 2026

Copy link
Copy Markdown
Owner

Closing this in favor of #630

@ajalt ajalt closed this Jan 16, 2026
ajalt added a commit that referenced this pull request Jan 16, 2026
Fixes #625 

Replaces #626; this version maintains backwards compatibility and adds
the parameter to all `test` overloads.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support providing input events to CliktTesting

2 participants