statusline

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package statusline draws the sitrep block of Claude Code's status line: the optional upstream status line (such as Claude HUD) first, then the session's Objective, Progress and Now, and a queue line. Claude Code gives it the session as JSON on standard input.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Line

type Line struct {
	Store state.Store
	Conf  conf.Conf
	Run   runner.Runner
	Env   []string // the environment of the upstream command, which gets SITREP_RENDERING=1 added
	// Version is this program's version; a newer release recorded by the daily check is announced after the queue line. Empty means no notice.
	Version string
}

Line draws the status line.

func (Line) Render

func (l Line) Render(ctx context.Context, in io.Reader, out io.Writer)

Render reads the event from in and writes the status line to out. It never fails: whatever goes wrong, what could be drawn is drawn.

Jump to

Keyboard shortcuts

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