Help us shape the future of Go! Take the 2026 Go Developer Survey

ui

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package ui provides terminal UI helpers for the ToolHive CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderClientStatusTable

func RenderClientStatusTable(clientStatuses []client.ClientAppStatus) error

RenderClientStatusTable renders the client status table to stdout.

func RenderRegisteredClientsTable added in v0.2.8

func RenderRegisteredClientsTable(registeredClients []RegisteredClient, hasGroups bool) error

RenderRegisteredClientsTable renders the registered clients table to stdout.

func RunClientSetup

func RunClientSetup(
	clients []client.ClientAppStatus,
	availableGroups []*groups.Group,
) ([]client.ClientAppStatus, []string, bool, error)

RunClientSetup runs the interactive client setup and returns the selected clients, groups, and whether the user confirmed.

Types

type RegisteredClient added in v0.2.8

type RegisteredClient struct {
	Name   string
	Groups []string
}

RegisteredClient represents a registered client with its associated groups

Jump to

Keyboard shortcuts

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