tui

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package tui provides interactive terminal UI components built with bubbletea.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BranchNameInput

func BranchNameInput() (string, error)

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 CommitMessageInput(repoAlias, branchName string) (string, error)

func FileSelect

func FileSelect(porcelainLines []string, title string) ([]string, error)

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.

func TextInput

func TextInput(title, hint, placeholder string) (string, error)

TextInput shows a generic single-line text prompt. title is displayed as a bold header; hint is the subtitle instruction line; placeholder is the greyed placeholder text inside the input field. Returns the trimmed value, or an error if the user cancels.

Types

This section is empty.

Jump to

Keyboard shortcuts

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