ui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfirmOverwrite

func ConfirmOverwrite(dirPath string) (bool, error)

ConfirmOverwrite prompts the user to confirm overwriting a non-empty directory

func PromptAITool

func PromptAITool() (string, error)

PromptAITool prompts the user to select an AI tool

func ShortenPath added in v0.2.0

func ShortenPath(path string) string

ShortenPath shortens a path by abbreviating parent directories e.g., /Users/john/workspaces/project -> /U/j/w/project

Types

type ProgressBar

type ProgressBar struct {
	// contains filtered or unexported fields
}

ProgressBar represents a simple progress bar

func NewProgressBar

func NewProgressBar(total int64) *ProgressBar

NewProgressBar creates a new progress bar

func (*ProgressBar) Finish

func (pb *ProgressBar) Finish()

Finish completes the progress bar

func (*ProgressBar) Render

func (pb *ProgressBar) Render()

Render renders the progress bar

func (*ProgressBar) Update

func (pb *ProgressBar) Update(current int64)

Update updates the progress bar

Jump to

Keyboard shortcuts

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