ui

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Box

func Box(content string)

Box prints text in a box

func Error

func Error(message string)

Error prints an error message

func FormatDuration

func FormatDuration(d time.Duration) string

FormatDuration formats a duration in a human-readable way

func Header(message string)

Header prints a header

func Info

func Info(message string)

Info prints an info message

func PrintContainerInfo

func PrintContainerInfo(c *database.Container)

PrintContainerInfo prints detailed container information

func PromptConfirm

func PromptConfirm(label string) (bool, error)

PromptConfirm prompts the user for confirmation

func PromptString

func PromptString(label string, defaultValue string) (string, error)

PromptString prompts the user for a string input

func SelectContainer

func SelectContainer(containers []*database.Container, label string) (*database.Container, error)

SelectContainer prompts the user to select a container

func SelectDBType

func SelectDBType() (string, error)

SelectDBType prompts the user to select a database type

func SelectUser

func SelectUser(users []*database.User, label string) (*database.User, error)

SelectUser prompts the user to select a user

func SelectVolumeOption

func SelectVolumeOption() (string, error)

SelectVolumeOption prompts the user to select a volume option

func Success

func Success(message string)

Success prints a success message

func Warning

func Warning(message string)

Warning prints a warning message

Types

This section is empty.

Jump to

Keyboard shortcuts

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