Versions in this module Expand all Collapse all v0 v0.0.28 Nov 27, 2026 v0.0.27 Nov 27, 2026 v0.0.26 Nov 27, 2026 Changes in this version + func Again(words []string, recovering bool) string + func Sum(rows []initrecord.Spent) spend.Spend + type Cap struct + Kind Kind + MicroUSD int64 + Percent float64 + Tokens int64 + func Parse(s string) (Cap, error) + func Read(s string, starts bool) (Cap, error) + func (c Cap) Show(s spend.Spend) string + func (c Cap) String() string + type Guard struct + Agent adapter.Adapter + AgentName string + Base spend.Spend + Cache *spend.Cache + Cap Cap + Raw adapter.Adapter + Spent func() spend.Spend + func Start(ctx context.Context, r Run) (*Guard, int) + func (g *Guard) Check(ctx context.Context) error + func (g *Guard) End() string + func (g *Guard) Finish(w io.Writer, code int, again string) int + func (g *Guard) Name() string + func (g *Guard) Reached(continueLine string) string + func (g *Guard) Start(ctx context.Context, spec adapter.Spec) (adapter.Session, error) + func (g *Guard) StartLine() string + func (g *Guard) Stopped() bool + func (g *Guard) Warnings() []string + func (g *Guard) Window() int + type Kind int + const Money + const None + const Share + const Tokens + type Run struct + Again string + Agent func() (adapter.Adapter, error) + Cache *spend.Cache + Cap Cap + Fresh bool + Out io.Writer + Record Spending + Say bool + type Spending interface + Spending func() ([]initrecord.Spent, error)