Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

选择 option 时支持输入 #360

Open
weinibuliu opened this issue Sep 22, 2024 · 3 comments
Open

选择 option 时支持输入 #360

weinibuliu opened this issue Sep 22, 2024 · 3 comments

Comments

@weinibuliu
Copy link
Contributor

目前遇到的需求是,一个 option 里面有40多个可选项。如果在 cli 中展示这么多选项,会造成一定的不便。

目前的设想是,让开发者提供一个可输入值列表,任何列表之外的值都被视为无效输入,提示用户重新输入。

@MistEO
Copy link
Member

MistEO commented Oct 11, 2024

要不直接输入字符串?

@MistEO
Copy link
Member

MistEO commented Oct 11, 2024

我感觉会有一堆多一个空格、打错一个字,然后问为什么不能用的(

@Windsland52
Copy link
Member

在ui接受输入并处理,然后运行时对interface的override部分处理如何

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

No branches or pull requests

3 participants