ui

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 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.MCPClientStatus) 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.MCPClientStatus,
	availableGroups []*groups.Group,
) ([]client.MCPClientStatus, []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