Documentation
¶
Overview ¶
Package setup puts sitrep's block on Claude Code's status line, and takes it off again. The plugin's hooks.json brings the hooks, so this writes none. It changes nothing until the settings edit has been checked and has succeeded, and it says what it found.
Index ¶
Constants ¶
const BuildName = "sitrep.new"
BuildName is the file the setup skill builds the program into, beside the stable path. Setup copies it into place and removes it.
const Command = `"$HOME/.claude/sitrep/bin/sitrep" statusline ` + settings.Tag
Command is the status line command sitrep writes. $HOME is expanded by the shell when Claude Code runs it, so the command works whatever the user's home is, and the tag at the end marks it as ours.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Setup ¶
type Setup struct {
Home string
BinDir string // where the sitrep link goes; ~/bin when empty
SkillsDir string // where a checkout install linked the skill; ~/.claude/skills when empty
Executable func() (string, error)
Now func() time.Time
Out, Err io.Writer
}
Setup is one run of setup or of its removal.