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

Function handler

src/cli/commands/stopTimeTrackingCommand.ts:31–45  ·  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 resolveTaskForStopTimeTracking(plugin, async () => {
33 if (!hasExplicitLookup(params)) {
34 return null;
35 }
36
37 return resolveTaskForCli(plugin, {
38 path: params.path,
39 title: params.title,
40 query: params.query,
41 });
42 });
43 const updatedTask = await plugin.taskService.stopTimeTracking(task);
44 return formatCliJson(formatTimeTrackingResult(updatedTask));
45 },
46};

Callers

nothing calls this directly

Calls 6

resolveTaskForCliFunction · 0.90
formatCliJsonFunction · 0.90
formatTimeTrackingResultFunction · 0.90
hasExplicitLookupFunction · 0.70
stopTimeTrackingMethod · 0.45

Tested by

no test coverage detected