backlog

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 10 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

Index

Constants

View Source
const (
	Ready   = "ready"
	Blocked = "blocked"
	Done    = "done"
)

Variables

View Source
var ErrNotFound = errors.New("no such backlog item")

Functions

This section is empty.

Types

type Item

type Item struct {
	ID       string    `json:"id"`
	Dir      string    `json:"dir"`
	Title    string    `json:"title,omitempty"`
	Prompt   string    `json:"prompt,omitempty"`
	Status   string    `json:"status"`
	Why      string    `json:"why,omitempty"`
	By       string    `json:"by,omitempty"`
	From     string    `json:"from,omitempty"`
	Accepted bool      `json:"accepted,omitempty"`
	Worktree bool      `json:"worktree,omitempty"`
	Session  string    `json:"session,omitempty"`
	SID      string    `json:"sid,omitempty"`
	Aside    bool      `json:"aside,omitempty"`
	Created  time.Time `json:"created"`
	Updated  time.Time `json:"updated"`
	Host     string    `json:"host,omitempty"`
}

func (Item) FirstMessage

func (it Item) FirstMessage() string

func (Item) Of

func (it Item) Of(sid, id string) bool

func (Item) Suggested

func (it Item) Suggested() bool

type Store

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

func Open

func Open(path string) (*Store, error)

func (*Store) Add

func (st *Store) Add(it Item) (Item, error)

func (*Store) List

func (st *Store) List() []Item

func (*Store) Remove

func (st *Store) Remove(id string) error

func (*Store) Update

func (st *Store) Update(id string, f func(*Item)) (Item, error)

Jump to

Keyboard shortcuts

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