setup

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 13 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 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

View Source
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.

View Source
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
	Version    string // the version of this program, to tell whether a newer release is known
}

Setup is one run of setup or of its removal.

func (Setup) Run

func (s Setup) Run(remove bool) int

Run sets up, or with remove undoes it, and returns the exit status.

Jump to

Keyboard shortcuts

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