Documentation
¶
Index ¶
- type Session
- func (s Session) Badge(text string, tone Tone) string
- func (s Session) Banner(title, subtitle string) string
- func (s Session) ColorEnabled() bool
- func (s Session) Command(cmd string) string
- func (s Session) Divider() string
- func (s Session) Errorln(text string)
- func (s Session) InfoBox(rows [][2]string) string
- func (s Session) InfoBoxWithTitle(title string, rows [][2]string) string
- func (s Session) Interactive() bool
- func (s Session) KeyValue(rows [][2]string) string
- func (s Session) Label(label string) string
- func (s Session) Muted(text string) string
- func (s Session) Println(text string)
- func (s Session) PromptSelect(label string, options []string, defaultValue string) (string, error)
- func (s Session) Section(title string) string
- func (s Session) Status(text string, tone Tone) string
- func (s Session) StatusBadge(text string, tone Tone) string
- func (s Session) Step(text string) string
- func (s Session) StepWarn(text string) string
- func (s Session) Table(headers []string, rows [][]string) string
- func (s Session) Title(title, subtitle string) string
- type Tone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
In io.Reader
Out io.Writer
Err io.Writer
// contains filtered or unexported fields
}
func (Session) Banner ¶
Banner renders a branded header with the tool name and optional tagline.
╭─────────────────────────────────────╮ │ ◆ Subspace │ │ Scaffold complete │ ╰─────────────────────────────────────╯
func (Session) ColorEnabled ¶
func (Session) InfoBox ¶
InfoBox renders key-value pairs inside a bordered box.
╭──────────────────────────────────╮ │ Workspace text-the-internet │ │ State RUNNING │ │ Editor VSCode (Browser) │ ╰──────────────────────────────────╯
func (Session) InfoBoxWithTitle ¶
InfoBoxWithTitle renders a titled info box.
╭ Workspace info ──────────────────╮ │ Name text-the-internet │ │ State RUNNING │ ╰──────────────────────────────────╯
func (Session) Interactive ¶
func (Session) PromptSelect ¶
func (Session) StatusBadge ¶
StatusBadge renders a pill-style status indicator like [RUNNING] in color.
Click to show internal directories.
Click to hide internal directories.