ui

package
v0.29.5 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package ui renders operator-facing terminal output shared across the bootstrap flow — the rounded next-steps box and the Keycloak admin-login rows printed inside it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeycloakAdminLoginLines

func KeycloakAdminLoginLines(keycloakDNS, realm, keycloakAdminPassword string) []string

KeycloakAdminLoginLines returns the console / user / password / realm rows for signing in to the Keycloak admin console and adding a user. Shared by the final next-steps panel and the pre-NetBird-gate prompt so both render identical rows.

func KeycloakPasswordLine

func KeycloakPasswordLine(keycloakAdminPassword string) string

KeycloakPasswordLine returns the "Password" row: the live password inline when known (readable even after the control-plane LB's public IP is disabled), else the kubectl-fetch command.

func PrintNextStepsBox

func PrintNextStepsBox(title string, lines []string)

PrintNextStepsBox renders the box and writes it to stdout. Thin wrapper over RenderNextStepsBox so the formatting itself stays pure-and-testable.

func RenderNextStepsBox

func RenderNextStepsBox(title string, lines []string) string

RenderNextStepsBox returns title + lines wrapped in a rounded-corner Unicode box, no line-wrapping: the box widens to fit the longest line so commands stay intact for copy-paste. Differs from pkg/config/prompt's printBox, which wraps overlong content to the terminal width.

Types

This section is empty.

Jump to

Keyboard shortcuts

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