prompt

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(message string, defaultValue bool) (bool, error)

Confirm asks for confirmation

func EditCommitMessage

func EditCommitMessage(current *llm.CommitMessage) (*llm.CommitMessage, error)

EditCommitMessage opens an editor for editing the commit message

func GetTempDir

func GetTempDir() (string, error)

GetTempDir returns a temporary directory for the application

func Input

func Input(message, defaultValue string) (string, error)

Input prompts for text input

func MultiInput

func MultiInput(message string) ([]string, error)

MultiInput prompts for multiple lines of input

func Password

func Password(message string) (string, error)

Password prompts for a password (hidden input)

func Select

func Select(message string, options []string) (string, error)

Select provides a selection menu

func ShowProgress

func ShowProgress(message string) func()

ShowProgress shows a progress spinner

Types

This section is empty.

Jump to

Keyboard shortcuts

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