console

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package console renders calm, human-readable messages for Hikyo's terminal surfaces. Structured operational events remain the responsibility of slog.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AboutMessage

func AboutMessage(info VersionInfo) string

AboutMessage renders the explicit product-information screen.

func FullArtwork

func FullArtwork() string

FullArtwork returns the byte-exact supplied logo for explicit display commands.

func ServerReadyMessage

func ServerReadyMessage(info ServerInfo) string

ServerReadyMessage renders the summary shown after both listeners bind.

func UpdateAvailableMessage

func UpdateAvailableMessage(info UpdateInfo) string

UpdateAvailableMessage renders a new release and the action target.

func UpdateCheckMessage

func UpdateCheckMessage(channel string) string

UpdateCheckMessage renders progress before the release source is queried.

func UpdateCurrentMessage

func UpdateCurrentMessage(info UpdateInfo) string

UpdateCurrentMessage renders a successful check with no newer release.

func VersionMessage

func VersionMessage(info VersionInfo) string

VersionMessage renders the human-facing output of `hikyo version`.

func WelcomeMessage

func WelcomeMessage(info VersionInfo) string

WelcomeMessage renders the explicit first-contact screen.

Types

type ServerInfo

type ServerInfo struct {
	Version        string
	AppURL         string
	ListenAddress  string
	OperationalURL string
	CLISocket      string
	Mode           string
}

ServerInfo describes the endpoints and mode of a ready server process.

type UpdateInfo

type UpdateInfo struct {
	Current    string
	Latest     string
	Channel    string
	ReleaseURL string
}

UpdateInfo describes the installed and selected Hikyo release.

type VersionInfo

type VersionInfo struct {
	Version   string
	Commit    string
	BuildDate string
}

VersionInfo describes one Hikyo binary build.

Jump to

Keyboard shortcuts

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