Documentation
¶
Overview ¶
Package display provides simple, colorful console output functions for CLI applications.
Example usage:
display.Error("Failed to connect: %v", err)
display.Info("Starting process...")
display.Step("Processing file %s", filename)
display.Done("All tasks completed successfully")
Index ¶
- func Copyright() string
- func DockerList(dockers []sqlc.Docker, title string)
- func Done(format string, a ...any)
- func Error(format string, a ...any)
- func ImageUpdatesAvailable(updates []ImageUpdateInfo, envName string)
- func Info(format string, a ...any)
- func InfraList(rows [][]any, headers []string, title string)
- func KubernetesList(kubes []sqlc.Kubernetes, title string)
- func Step(format string, a ...any)
- func UpdateAvailable(currentVersion, latestVersion string)
- func UpdateStarting(oldVersion, newVersion string)
- func Urls(portalURL, gatewayURL, backofficeURL, title string)
- func Warn(format string, a ...any)
- type ImageUpdateInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DockerList ¶
func ImageUpdatesAvailable ¶ added in v0.9.0
func ImageUpdatesAvailable(updates []ImageUpdateInfo, envName string)
ImageUpdatesAvailable prints a notification when Docker images have updates available
func KubernetesList ¶
func KubernetesList(kubes []sqlc.Kubernetes, title string)
func UpdateAvailable ¶ added in v0.8.0
func UpdateAvailable(currentVersion, latestVersion string)
UpdateAvailable prints a notification when a newer version of the CLI is available
func UpdateStarting ¶ added in v0.8.1
func UpdateStarting(oldVersion, newVersion string)
UpdateStarting prints a table indicating the start of an update with version details
Types ¶
type ImageUpdateInfo ¶ added in v0.9.0
ImageUpdateInfo holds information about an image update.
Click to show internal directories.
Click to hide internal directories.