Documentation
¶
Overview ¶
Package output provides terminal output formatting for gridctl with amber color theme.
Index ¶
- Variables
- type ContainerSummary
- type GatewaySummary
- type Printer
- func (p *Printer) Banner(ver string)
- func (p *Printer) Containers(containers []ContainerSummary)
- func (p *Printer) Debug(msg string, keyvals ...any)
- func (p *Printer) Error(msg string, keyvals ...any)
- func (p *Printer) Gateways(gateways []GatewaySummary)
- func (p *Printer) Info(msg string, keyvals ...any)
- func (p *Printer) Print(format string, args ...any)
- func (p *Printer) Println(args ...any)
- func (p *Printer) Section(title string)
- func (p *Printer) SetDebug(enabled bool)
- func (p *Printer) Summary(workloads []WorkloadSummary)
- func (p *Printer) Warn(msg string, keyvals ...any)
- type WorkloadSummary
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ColorAmber = lipgloss.Color("#f59e0b") // Primary brand color ColorWhite = lipgloss.Color("#fafaf9") // text-text-primary ColorMuted = lipgloss.Color("#78716c") // text-text-muted ColorGreen = lipgloss.Color("#10b981") // status-running ColorRed = lipgloss.Color("#f43f5e") // status-error ColorGray = lipgloss.Color("#a8a29e") // text-text-secondary )
Amber color theme based on Gridctl web UI design system. Primary amber (#f59e0b) for key elements.
Functions ¶
This section is empty.
Types ¶
type ContainerSummary ¶
type ContainerSummary struct {
ID string
Name string
Type string // mcp-server, agent, resource
Image string
State string // running, exited, etc.
Message string // status message
}
ContainerSummary contains data for the container status table.
type GatewaySummary ¶
type GatewaySummary struct {
Name string
Port int
PID int
Status string // running, stopped
Started string // human-readable duration
}
GatewaySummary contains data for the gateway status table.
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
Printer handles terminal output with amber-themed styling.
func NewWithWriter ¶
NewWithWriter creates a Printer with a custom writer.
func (*Printer) Containers ¶
func (p *Printer) Containers(containers []ContainerSummary)
Containers prints the container status table with amber styling.
func (*Printer) Gateways ¶
func (p *Printer) Gateways(gateways []GatewaySummary)
Gateways prints the gateway status table with amber styling.
func (*Printer) Summary ¶
func (p *Printer) Summary(workloads []WorkloadSummary)
Summary prints the final status table with amber styling.
Click to show internal directories.
Click to hide internal directories.