Skip to content

Support passing input events to CliktCommand.test#626

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

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

Conversation

@mikaelstaldal
Copy link

@mikaelstaldal mikaelstaldal commented Nov 13, 2025

Fixes #625

Not sure if this may break binary compatibility?

Copy link
Owner

@ajalt ajalt left a comment

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
Copy link
Author

mikaelstaldal commented Nov 14, 2025

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
Copy link
Owner

ajalt commented Jan 16, 2026

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