{"modulePath":"github.com/amberpixels/f10/cli","version":"v0.71.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package task\n\nPackage 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.\n\n## Constants\n\n```go\nconst (\n\tStaleFresh   = \"fresh\"\n\tStaleJudged  = \"judged\"\n\tStaleNeeds   = \"needs judge\"\n\tStaleUndated = \"undated\"\n)\n```\nThe words task stale prints; fetch acts on each and works out nothing.\n\n```go\nconst ClosedMark = \"[closed]\"\n```\nClosedMark follows a closed task's ref line.\n\n## Functions\n\n```go\nfunc Command() *cli.Command\n```\nCommand 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.\n\n```go\nfunc CreatedAtFor(ctx context.Context, t *target.Target, r ref.Ref, flag string) (time.Time, error)\n```\nCreatedAtFor 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.\n\n```go\nfunc DemoCommand() *cli.Command\n```\nDemoCommand 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\\`.\n\n```go\nfunc GithubAuth(ctx context.Context, t *target.Target) func(*http.Request)\n```\nGithubAuth is taskwrite.GithubAuth.\n\n```go\nfunc MdLink(id, title, url string) string\n```\nMdLink is taskwrite.MdLink.\n\n```go\nfunc OpenRows(rows []stack.ChildRow) []stack.ChildRow\n```\nOpenRows is rows without the finished ones, put in tree order again: a dependent of a finished base moves up to where its base stood.\n\n```go\nfunc PlanCommand() *cli.Command\n```\nPlanCommand 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.\n\n```go\nfunc RankRows(rows []hostops.Row) []hostops.Row\n```\nRankRows is stable, so the tracker's order holds inside a level.\n\n```go\nfunc ReadDoc(ctx context.Context, t *target.Target, r ref.Ref) (string, error)\n```\nReadDoc is taskwrite.Read.\n\n```go\nfunc RefLine(token, id string, k ledger.TaskRef, md bool) string\n```\nRefLine marks a closed task so the agent reading it never names it as open work; the marker is a note to that agent, never part of the link.\n\n```go\nfunc RefuseClosed(ctx context.Context, t *target.Target, r ref.Ref, warn io.Writer) error\n```\nRefuseClosed stops a comment on a closed task, which is usually meant for open work. The tracker's state wins, since a reopen never clears a finish; the ledger decides only where the tracker gives no state or no answer.\n\n```go\nfunc SearchRows(ctx context.Context, t *target.Target, query string) ([]hostops.Row, error)\n```\n\n```go\nfunc Staleness(created time.Time, staleAfter facts.StaleAfter, now time.Time, roots []string, id string) string\n```\nStaleness 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.\n\n```go\nfunc TaskListURL(ctx context.Context, t *target.Target) (string, error)\n```\n\n```go\nfunc WithImages(ctx context.Context, doc, dir string, d images.Downloader) string\n```\nWithImages is taskwrite.WithImages.\n\n```go\nfunc WriteParentTree(ctx context.Context, cmd *cli.Command, t *target.Target, token string, r ref.Ref,\n\tk ledger.TaskRef,\n) error\n```\nWriteParentTree hangs a parent's open subtasks under it in After: order, so a split reads as one block. Each url goes on the line under its title. A parent the tracker cannot link prints as one task's facts.\n\n```go\nfunc WriteTaskList(ctx context.Context, t *target.Target, w, warn io.Writer) error\n```\n\n```go\nfunc WriteTree(w io.Writer, rows []stack.ChildRow) error\n```\nWriteTree 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.\n\n","path":"github.com/amberpixels/f10/cli/internal/command/task","name":"task","synopsis":"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.","isRedistributable":true}
