(
options: TaskNotesRuntimeTimeSummaryOptions = {}
)
| 1692 | } |
| 1693 | |
| 1694 | private async getTimeSummary( |
| 1695 | options: TaskNotesRuntimeTimeSummaryOptions = {} |
| 1696 | ): Promise<TaskNotesRuntimeTimeSummary> { |
| 1697 | const allTasks = await this.plugin.cacheManager.getAllTasks(); |
| 1698 | return computeTimeSummary( |
| 1699 | allTasks, |
| 1700 | { |
| 1701 | period: options.period ?? "today", |
| 1702 | fromDate: coerceDateOption(options.from), |
| 1703 | toDate: coerceDateOption(options.to), |
| 1704 | includeTags: options.includeTags ?? true, |
| 1705 | }, |
| 1706 | (status) => this.plugin.statusManager.isCompletedStatus(status) |
| 1707 | ); |
| 1708 | } |
| 1709 | |
| 1710 | private async getTaskTimeData(path: string): Promise<TaskNotesRuntimeTaskTimeData> { |
| 1711 | const task = await this.requireTask(path); |
no test coverage detected