gripe

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package gripe records and lists agent complaints about sf — the one failure the call log can't capture on its own: sf exited 0 but gave the wrong thing, or the agent had to fall back to cat/rg/grep because sf couldn't do what was needed. `sf gripe '<one line>'` writes one cheap record (auto-tagged with project, session and time by calllog); bare `sf gripe` lists recent gripes so the sf author sees the coverage gaps to fix. Hard errors (exit != 0) are already in the log — read those with `sf history --failed --source agent`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

NewCommand returns the `gripe` Cobra command (`sf gripe`).

func Run

func Run(opts Options, w io.Writer) error

Run records a gripe when Message is set, otherwise lists recent gripes.

Types

type Gripe

type Gripe struct {
	When    string `json:"when"`    // YYYY-MM-DD HH:MM local (raw ts on parse fail)
	Project string `json:"project"` // tag; "?" when unknown
	Source  string `json:"source"`  // agent | manual | test
	Note    string `json:"note"`
}

Gripe is one row of the list view.

type Options

type Options struct {
	Message string
	Format  string
	Limit   int // list view: max gripes to show (0 = unlimited)
}

Options carries flag/arg state. A non-empty Message records a gripe; an empty Message lists recent ones.

Jump to

Keyboard shortcuts

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