MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / createTask

Function createTask

tests/unit/services/filterCacheIndexing.test.ts:74–86  ·  view source on GitHub ↗
(path: string, overrides: Partial<TaskInfo> = {})

Source from the content-addressed store, hash-verified

72}
73
74function createTask(path: string, overrides: Partial<TaskInfo> = {}): TaskInfo {
75 return {
76 title: path,
77 status: "open",
78 priority: "normal",
79 path,
80 archived: false,
81 tags: ["task"],
82 contexts: [],
83 projects: [],
84 ...overrides,
85 } as TaskInfo;
86}
87
88function statusQuery(status: string): FilterQuery {
89 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected