task

package
v0.60.0 Latest Latest
Warning

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

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

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

View Source
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

func Command() *cli.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

func CreatedAtFor(ctx context.Context, t *target.Target, r ref.Ref, flag string) (time.Time, error)

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

func DemoCommand() *cli.Command

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

func GithubAuth(ctx context.Context, t *target.Target) func(*http.Request)

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(id, title, url string) string

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

func OpenRows(rows []stack.ChildRow) []stack.ChildRow

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

func PlanCommand() *cli.Command

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 RankRows

func RankRows(rows []hostops.Row) []hostops.Row

RankRows is stable, so the tracker's order holds inside a level.

func ReadDoc

func ReadDoc(ctx context.Context, t *target.Target, r ref.Ref) (string, error)

ReadDoc feeds the ledger's task refs, so a later ref costs no tracker call.

func RefLine

func RefLine(token, id string, k ledger.TaskRef, md bool) string

func SearchRows

func SearchRows(ctx context.Context, t *target.Target, query string) ([]hostops.Row, error)

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 TaskListURL

func TaskListURL(ctx context.Context, t *target.Target) (string, error)

func WithImages

func WithImages(ctx context.Context, doc, dir string, d images.Downloader) string

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

func WriteTaskList(ctx context.Context, t *target.Target, w, warn io.Writer) error

func WriteTree

func WriteTree(w io.Writer, rows []stack.ChildRow) error

WriteTree prints the rows as the tree drive shows, with no urls: a model reads it, and one needing a url runs f10 task open --link, as for status.

Types

This section is empty.

Jump to

Keyboard shortcuts

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