Open
Description
Hey,
since version 5.0.0 the two methods editText
and editFile
have been removed as part of the removal of TermUi. As my app depends on it, I was wondering if there is an replacement for those two functions. There were also not marked as @Deprecated
as one would expect.
The documentation seems to still refer to the old TermUi object. There seems to be no proxy methods added within CliktCommand like the following comment suggests #344 (comment)
Thanks in advance.
Metadata
Metadata
Assignees
Labels
No labels
Activity
ajalt commentedon Sep 17, 2024
Thanks for the heads up on the docs, they should be fixed now.
The TermUi editor functions were the only usages of
expect
/actual
, so removing them means all that's left iscommonMain
, so it's easier to publish on every target. I could add similar functionality to mordant, which already has a lot of platform-specific implementations.cmdjulian commentedon Sep 17, 2024
That would be really good, as it effectively let's the user a little bit in the rain here without proper replacement like in my case :(
This is a rather handy utility function!
ajalt commentedon Sep 17, 2024
You can also always copy the old implementation if you want to use it now.
cmdjulian commentedon Dec 5, 2024
I did that, but it's a bit clumsy. Any progress so far?