Documentation
¶
Overview ¶
Package task is the f10 task, f10 plan and f10 demo commands: reading, creating and updating the project's tasks and opening their plans and demos.
Index ¶
- Constants
- func Command() *cli.Command
- func CreatedAtFor(ctx context.Context, t *target.Target, r ref.Ref, flag string) (time.Time, error)
- func DemoCommand() *cli.Command
- func GithubAuth(ctx context.Context, t *target.Target) func(*http.Request)
- func MdLink(id, title, url string) string
- func OpenRows(rows []stack.ChildRow) []stack.ChildRow
- func PlanCommand() *cli.Command
- func RankRows(rows []hostops.Row) []hostops.Row
- func ReadDoc(ctx context.Context, t *target.Target, r ref.Ref) (string, error)
- func RefLine(token, id string, k ledger.TaskRef, md bool) string
- func SearchRows(ctx context.Context, t *target.Target, query string) ([]hostops.Row, error)
- func Staleness(created time.Time, staleAfter facts.StaleAfter, now time.Time, roots []string, ...) string
- func TaskListURL(ctx context.Context, t *target.Target) (string, error)
- func WithImages(ctx context.Context, doc, dir string, d images.Downloader) string
- func WriteParentTree(ctx context.Context, cmd *cli.Command, t *target.Target, token string, ...) error
- func WriteTaskList(ctx context.Context, t *target.Target, w, warn io.Writer) error
- func WriteTree(w io.Writer, rows []stack.ChildRow) error
Constants ¶
const ( StaleFresh = "fresh" StaleJudged = "judged" StaleNeeds = "needs judge" StaleUndated = "undated" )
The words task stale prints; fetch acts on each and works out nothing.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
Command is the task noun; it goes through the project's driver, else the host's issues: a repo with no .f10/ at all still answers, and one whose tracker has no CLI answers the same way once it drops in a driver.
func CreatedAtFor ¶
CreatedAtFor prefers --created, the date the agent already read; a bare call asks the tracker, and one that keeps no date f10 can parse answers zero.
func DemoCommand ¶
DemoCommand is the demo noun: no driver and no network behind it, like plan. A report is HTML, so it opens in the browser and there is no `read`.
func GithubAuth ¶
GithubAuth sends the gh token only to GitHub's own hosts over https, where a private repo's attachments sit. It is read once; a failed read leaves the request bare, so its error names the image.
func MdLink ¶
MdLink is the task as a markdown link, brackets in the title escaped so the link text always ends where the link does.
func OpenRows ¶
OpenRows is rows without the finished ones, put in tree order again: a dependent of a finished base moves up to where its base stood.
func PlanCommand ¶
PlanCommand is the plan noun. A plan is a markdown file named after its task, so the reference that reaches a task reaches its plan; no driver, network or host CLI behind it.
func SearchRows ¶
func Staleness ¶
func Staleness(created time.Time, staleAfter facts.StaleAfter, now time.Time, roots []string, id string) string
Staleness is the line task stale prints. A proceed on the task within stale_after clears it, searched in every root a worktree's verdicts may sit in.
func WithImages ¶
WithImages ends doc with a footer naming its downloaded images. A dir that cannot be written fails every image, never the read.
func WriteParentTree ¶
func WriteParentTree(ctx context.Context, cmd *cli.Command, t *target.Target, token string, r ref.Ref, k ledger.TaskRef, ) error
WriteParentTree hangs a parent's open subtasks under it, in After: order, each row with its title and url, so a split reads as one block. A parent the tracker cannot link prints as one task's facts.
func WriteTaskList ¶
Types ¶
This section is empty.