display

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copyright() string

func DockerList

func DockerList(dockers []sqlc.Docker, title string)

func Done

func Done(format string, a ...any)

func Error

func Error(format string, a ...any)

func ImageUpdatesAvailable added in v0.9.0

func ImageUpdatesAvailable(updates []ImageUpdateInfo, envName string)

ImageUpdatesAvailable prints a notification when Docker images have updates available

func Info

func Info(format string, a ...any)

func InfraList

func InfraList(rows [][]any, headers []string, title string)

func KubernetesList

func KubernetesList(kubes []sqlc.Kubernetes, title string)

func Step

func Step(format string, a ...any)

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

func Urls

func Urls(portalURL, gatewayURL, backofficeURL, title string)

Urls prints the URLs for the data portal, API gateway, and backoffice for a specific environment

func Warn

func Warn(format string, a ...any)

Types

type ImageUpdateInfo added in v0.9.0

type ImageUpdateInfo struct {
	Name       string
	LastUpdate time.Time
}

ImageUpdateInfo holds information about an image update.

Jump to

Keyboard shortcuts

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