welcome

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package welcome renders the start screen splash banner for a clean CLI session.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Theme theme.Theme
	Tier  theme.Tier
	// contains filtered or unexported fields
}

Model is the start screen welcome banner component.

func New

func New(t theme.Theme, tier theme.Tier) Model

New returns an initialized welcome Model. It detects the current workspace (repo name and branch) once via no-exec .git inspection so the banner can show a workspace line without shelling out to git.

func (Model) Rows

func (m Model) Rows(width, height int) []string

Rows returns exactly height rows of vertically and horizontally centered welcome content.

func (*Model) SetTheme

func (m *Model) SetTheme(t theme.Theme, tier theme.Tier)

SetTheme updates the theme and tier of the welcome component.

func (Model) UpdateFrame

func (m Model) UpdateFrame() Model

UpdateFrame advances the optional animation frame.

func (Model) View

func (m Model) View(width, height int) string

View returns the joined rendered rows.

Jump to

Keyboard shortcuts

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