Documentation
¶
Index ¶
- func CheckForExit() bool
- func ClearScreen()
- func Colorize(text string, colorType string) string
- func ConfirmAction(message string) bool
- func Contains(slice []string, item string) bool
- func CreateTable(headers []string, rows [][]string)
- func DisplayResponse(data interface{}, format string) error
- func FormatBytes(bytes int64) string
- func FormatDuration(d time.Duration) string
- func GetEnvWithDefault(key, defaultValue string) string
- func GetUserInput(prompt string) (string, error)
- func InitializeLogging(verbose bool) error
- func IsValidURL(url string) bool
- func JoinArgs(args []string) string
- func LogDebug(message string)
- func LogError(message string)
- func LogInfo(message string)
- func LogWarning(message string)
- func NewSpinner(message string) *spinner.Spinner
- func ParseKeyValue(input string) []string
- func PrintBanner()
- func RemoveFromSlice(slice []string, item string) []string
- func TruncateString(s string, maxLength int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForExit ¶
func CheckForExit() bool
CheckForExit checks if the user wants to exit (simplified)
func ConfirmAction ¶
ConfirmAction asks for user confirmation
func CreateTable ¶
CreateTable creates a formatted table
func DisplayResponse ¶
DisplayResponse displays a response in the specified format
func FormatBytes ¶
FormatBytes formats bytes into human-readable format
func FormatDuration ¶
FormatDuration formats duration into human-readable format
func GetEnvWithDefault ¶
GetEnvWithDefault gets an environment variable with a default value
func GetUserInput ¶
GetUserInput gets user input with a prompt
func InitializeLogging ¶
InitializeLogging initializes the logging system
func NewSpinner ¶
NewSpinner creates a new spinner with the given message
func ParseKeyValue ¶
ParseKeyValue parses a key=value string
func RemoveFromSlice ¶
RemoveFromSlice removes an item from a string slice
func TruncateString ¶
TruncateString truncates a string to a maximum length
Types ¶
This section is empty.