headless

package
v0.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package headless provides a UI that prints events to stdout without user input.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Headless

type Headless struct {
	// contains filtered or unexported fields
}

Headless prints events to stdout without readline input.

func New

func New() *Headless

New creates a new Headless UI.

func (*Headless) Actions

func (h *Headless) Actions() <-chan ui.UserAction

Actions returns nil (headless has no user actions).

func (*Headless) Cancel

func (h *Headless) Cancel() <-chan struct{}

Cancel returns nil (headless has no cancel mechanism).

func (*Headless) Events

func (h *Headless) Events() chan<- ui.Event

Events returns the channel for receiving events.

func (*Headless) Input

func (h *Headless) Input() <-chan ui.UserInput

Input returns nil (headless has no user input).

func (*Headless) Run

func (h *Headless) Run(ctx context.Context) error

Run consumes events and prints to stdout until context is cancelled.

func (*Headless) SetHintFunc

func (h *Headless) SetHintFunc(_ func(string) string)

SetHintFunc is a no-op for headless.

func (*Headless) SetWorkdir

func (h *Headless) SetWorkdir(_ string)

SetWorkdir is a no-op for headless.

Jump to

Keyboard shortcuts

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