Documentation
¶
Overview ¶
Package inbox is the f10 inbox command: the questions driven agents wait on, listed, answered, or walked in a terminal.
Index ¶
- func AnswerAsk(ctx context.Context, w io.Writer, dir, token string, values []string, ...) error
- func AsksAlias() *cli.Command
- func Command() *cli.Command
- func InboxContext(dir, stateDir, session, event, checkout, project string) []byte
- func ListAsks(ctx context.Context, w io.Writer, dir, project string, now time.Time, ...) error
- func ProjectOf(l *layout.Layout) string
- func WalkAsks(ctx context.Context, w io.Writer, in *bufio.Reader, dir string, d Deliverer) error
- func WriteProject(stateDir, session, root string)
- type AskList
- type Deliverer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnswerAsk ¶
func AnswerAsk(ctx context.Context, w io.Writer, dir, token string, values []string, by string, d Deliverer) error
AnswerAsk answers token's open ask in the inbox in dir with d moving it on, served in process: the inbox command's answer for a test's inbox.
func AsksAlias ¶
AsksAlias is the inbox under its old name, hidden, for a session started before a same-version local rebuild: its hooks.json still runs f10 asks hook against the new binary. Drop it in v0.68.
func Command ¶
Command is the inbox noun: the questions driven agents wait on, listed, answered or walked in a terminal.
func InboxContext ¶
InboxContext is the hook's additional context: the open asks of the project at project that this session was not told, leaving out its own checkout's. An empty project takes every project's. None gives nothing.
func ListAsks ¶
func ListAsks(ctx context.Context, w io.Writer, dir, project string, now time.Time, asJSON bool) error
ListAsks prints the inbox in dir for the project at project, every project's when empty, served in process: the inbox command's list for a test's inbox.
func ProjectOf ¶ added in v0.68.0
ProjectOf is the storage root a layout's asks name as their project. Outside git it is "", because no project's asks get mixed there.
func WalkAsks ¶
WalkAsks walks the inbox in dir with d moving answers on, served in process: the inbox command's walk for a test's inbox, every project's.
func WriteProject ¶ added in v0.68.0
func WriteProject(stateDir, session, root string)
WriteProject records the hash of the session's project for the status line, or removes it outside any project, where every project's asks count.