Documentation
¶
Index ¶
- Variables
- func CopyFile(src, dest string) error
- func CreateTable() *table.Table
- func EllipsizeTo(str string, maxLength int) string
- func HashString(str string) (string, error)
- func MapStrings(strs []string, fn func(string) string) []string
- func MoveDir(src, dest string) error
- func PrintJSON(obj any)
- func URLSafeName(projectURL string) (string, error)
- func UseTempPath(permanentPath string) (string, func() error, func() error)
- func WrapToLines(input string, maxLineLength int) []string
- func WrapWith(wrap string) func(string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Theme = func() *huh.Theme { t := huh.ThemeBase16() t.Focused.FocusedButton = t.Focused.FocusedButton.Foreground(lipgloss.Color("7")).Background(lipgloss.Color("4")) t.Focused.TextInput.Cursor.Foreground(lipgloss.Color("4")) return t }() Accented = func(text string) string { return Theme.Focused.Title.Render(text) } Dimmed = func(text string) string { return Theme.Focused.Description.Render(text) } Fg = lipgloss.AdaptiveColor{Light: "235", Dark: "252"} FormBaseStyle = Theme.Form.Foreground(Fg).Padding(0, 1) FormHeaderStyle = FormBaseStyle.Bold(true) )
Functions ¶
func CreateTable ¶
func EllipsizeTo ¶
func HashString ¶
func URLSafeName ¶
func UseTempPath ¶
Provides a temporary path, a function to relocate it to a permanent path, and a function to clean up the temporary path that should always be deferred in the case of a failure to relocate.
func WrapToLines ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.