output

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintStatus

func PrintStatus(w io.Writer, styles Styles, rows []StatusRow) error

func PrintWorkspaceCreated

func PrintWorkspaceCreated(w io.Writer, info WorkspaceCreated, styles Styles) error

func RenderTable

func RenderTable(styles Styles, headers []string, rows [][]string) string

func WriteJSON

func WriteJSON(w io.Writer, v any) error

Types

type StatusRow

type StatusRow struct {
	Name   string
	State  string
	Detail string
}

type Styles

type Styles struct {
	Enabled bool
	Title   lipgloss.Style
	Key     lipgloss.Style
	Value   lipgloss.Style
	Muted   lipgloss.Style
	Accent  lipgloss.Style
	Success lipgloss.Style
	Warn    lipgloss.Style
	Error   lipgloss.Style
}

func NewStyles

func NewStyles(w io.Writer, plain bool) Styles

func (Styles) Render

func (s Styles) Render(style lipgloss.Style, text string) string

type WorkspaceCreated

type WorkspaceCreated struct {
	Name    string `json:"name"`
	Path    string `json:"path"`
	Workset string `json:"workset"`
	Branch  string `json:"branch"`
	Next    string `json:"next"`
}

Jump to

Keyboard shortcuts

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