infinite

package module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 7 Imported by: 0

README

infinite

Component library for developing interactive CLI(tui,terminal) programs.
go report card
demo

Features

  • Provides a range of out-of-the-box components

    • autocomplete
    • progress-bar group
    • multi/single select
    • spinner
    • confirm(input/selection)
    • text input
  • Cross-platform

  • Customizable, you can replace some options or methods in the component with your own implementation

  • Composable, you can combine components together to build your own interactive program

    • autocomplete + input To achieve input reception into selection to choose options.
    • selection instantiation via input for option filtering.

Install

go get github.com/yunginnanet/infinite

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfirm

func NewConfirm(ops ...confirm.Option) *confirm.Confirm

NewConfirm new confirm

func NewConfirmWithSelection

func NewConfirmWithSelection(ops ...cs.Option) *cs.Confirm

NewConfirmWithSelection new confirm with Selection

func NewMultiSelect

func NewMultiSelect(choices []string, ops ...multiselect.Option) *multiselect.Select

NewMultiSelect new multi select

func NewProgressGroup

func NewProgressGroup(processCnt int) *progress.Group

NewProgressGroup new progress group with count.

func NewSingleSelect

func NewSingleSelect(choices []string, ops ...singleselect.Option) *singleselect.Select

NewSingleSelect new single select

func NewSpinner

func NewSpinner(ops ...spinner.Option) *spinner.Spinner

NewSpinner new spinner

func NewText

func NewText(ops ...text.Option) *text.Text

NewText new text input

Types

This section is empty.

Directories

Path Synopsis
_examples
autocomplete command
confirm command
demo command
emoji command
input command
list command
mutil_select command
print command
progress command
progress_group command
progress_test command
progress_trans command
single_select command
spinner command
spinner_timer command
style command
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL