Documentation
¶
Index ¶
- func AnswerAsk(ctx context.Context, w io.Writer, dir, token string, values []string, ...) error
- func AsksContext(dir, stateDir, session, event, root string) []byte
- func Command() *cli.Command
- func ListAsks(ctx context.Context, w io.Writer, dir string, now time.Time, asJSON bool) error
- func WalkAsks(ctx context.Context, w io.Writer, in *bufio.Reader, dir string, d Deliverer) error
- type AskList
- type Deliverer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsksContext ¶
AsksContext is the hook's output: the untold open asks, outside the session's own checkout, as additional context; nothing when none.
func Command ¶
Command is the asks noun: the questions driven agents wait on, listed, answered or walked in a terminal.
Types ¶
type AskList ¶
type AskList struct {
Open []askView `json:"open"`
Answered []askView `json:"answered"`
}
type Deliverer ¶
type Deliverer struct {
Prompt func(ctx context.Context, w io.Writer, a asks.Ask) error
Resume func(ctx context.Context, w io.Writer, a asks.Ask) error
Live func(a asks.Ask) bool
}
A Deliverer moves a claimed answer on: prompt reaches an agent no drive watches, resume restarts a stopped drive, and live says whether a drive still runs.