We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
项目地址:https://github.com/fzdwx/infinite
类别:Go
项目标题:用Golang开发的交互式命令行组件库。
项目描述: 它提供了一些常用的交互式组件,比如说progress,progress group,mulit select,input text,confirm等.同时也提供了一些更基础的组件,方便用户进行组合使用。
progress
progress group
mulit select
input text
confirm
亮点:
autocomplete
input
selection
示例代码 这个 一个multi select的代码案例
multi select
package main import ( inf "github.com/fzdwx/infinite" "github.com/fzdwx/infinite/color" "github.com/fzdwx/infinite/components" "github.com/fzdwx/infinite/components/selection/multiselect" "github.com/fzdwx/infinite/style" ) func main() { input := components.NewInput() input.Prompt = "Filtering: " input.PromptStyle = style.New().Bold().Italic().Fg(color.LightBlue) _, _ = inf.NewMultiSelect([]string{ "Buy carrots", "Buy celery", "Buy kohlrabi", "Buy computer", "Buy something", "Buy car", "Buy subway", }, multiselect.WithHintSymbol("x"), multiselect.WithUnHintSymbol("√"), multiselect.WithFilterInput(input), ).Display("select your items!") }
autocomplete:
print
progress bar
The text was updated successfully, but these errors were encountered:
No branches or pull requests
推荐项目
项目地址:https://github.com/fzdwx/infinite
类别:Go
项目标题:用Golang开发的交互式命令行组件库。
项目描述:
它提供了一些常用的交互式组件,比如说
progress
,progress group
,mulit select
,input text
,confirm
等.同时也提供了一些更基础的组件,方便用户进行组合使用。亮点:
autocomplete
由input
和selection
组成selection
通过嵌入input
来实现过滤功能.示例代码
这个 一个
multi select
的代码案例autocomplete:
print
multi select
progress bar
confirm
The text was updated successfully, but these errors were encountered: