Skip to content

Incorrect completion for options #495

Closed
@bmiller1009

Description

@bmiller1009

I'm testing out the new 2.1.0 release and it looks like the ValueProviderSupport class has been deprecated. I have a flow where I have multiple parameters which need a value provider and the suggested value from the first returned and used to filter the value provider for the second.

Currently tabbing on ValueProvider for the first parameter returns the correctly it also incorrectly returns both parameters in addition to the provided value. The second ValueProvider seems never to be triggered.

I am using Kotlin, and my method signature would look something like this:

@ShellMethod("Get details")
fun getDetails(
@ShellOption(valueProvider = TestValueProvider1::class) test1: String,
@ShellOption(valueProvider = TestValueProvider2::class) test2: String
)

In the 2.0.0 API I used ValueProviderSupport and this gave me exactly what I needed. What is the correct way to achieve this now in 2.1.x?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions