Documentation
¶
Overview ¶
Package tui provides interactive terminal UI components built with bubbletea.
Index ¶
- func BranchNameInput() (string, error)
- func CommitMessageInput(repoAlias, branchName string) (string, error)
- func FileSelect(porcelainLines []string, title string) ([]string, error)
- func MultiSelect(repos []*db.Repository, title string, preSelectAll bool, disabledIdxs []int) ([]*db.Repository, error)
- func TextInput(title, hint, placeholder string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BranchNameInput ¶
BranchNameInput shows a single-line text prompt for a branch name. Returns the entered branch name, or an error if the user cancels.
func CommitMessageInput ¶
func FileSelect ¶
FileSelect displays an interactive checkbox list of dirty files (porcelain format) and returns the raw porcelain lines for the user's selection. Nothing is pre-selected. Returns nil if the user cancels.
func MultiSelect ¶
func MultiSelect(repos []*db.Repository, title string, preSelectAll bool, disabledIdxs []int) ([]*db.Repository, error)
MultiSelect displays an interactive checkbox list and returns the selected repositories. If preSelectAll is true, all non-disabled repos are pre-selected. disabledIdxs lists the indices of repos that should be shown but not toggleable. Returns nil if the user cancels.
Types ¶
This section is empty.