Skip to content

Replacement for editText and editFile #552

Open
@cmdjulian

Description

@cmdjulian

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.

Activity

ajalt

ajalt commented on Sep 17, 2024

@ajalt
Owner

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 is commonMain, 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

cmdjulian commented on Sep 17, 2024

@cmdjulian
Author

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

ajalt commented on Sep 17, 2024

@ajalt
Owner

You can also always copy the old implementation if you want to use it now.

cmdjulian

cmdjulian commented on Dec 5, 2024

@cmdjulian
Author

I did that, but it's a bit clumsy. Any progress so far?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      Replacement for `editText` and `editFile` · Issue #552 · ajalt/clikt