(plugin, params: CliData)
| 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 | }; |
nothing calls this directly
no test coverage detected