MCPcopy
hub / github.com/callumalpass/tasknotes / handler

Function handler

src/cli/commands/startTimeTrackingCommand.ts:31–39  ·  view source on GitHub ↗
(plugin, params: CliData)

Source from the content-addressed store, hash-verified

29 },
30 },
31 async handler(plugin, params: CliData): Promise<string> {
32 const task = await resolveTaskForCli(plugin, {
33 path: params.path,
34 title: params.title,
35 query: params.query,
36 });
37 const updatedTask = await startTimeTrackingForTask(plugin, task, params.description);
38 return formatCliJson(formatTimeTrackingResult(updatedTask));
39 },
40};

Callers

nothing calls this directly

Calls 4

resolveTaskForCliFunction · 0.90
startTimeTrackingForTaskFunction · 0.90
formatCliJsonFunction · 0.90
formatTimeTrackingResultFunction · 0.90

Tested by

no test coverage detected