( input: TaskEditFormStateFromTaskInput )
| 49 | } |
| 50 | |
| 51 | export function buildTaskEditFormStateFromTask( |
| 52 | input: TaskEditFormStateFromTaskInput |
| 53 | ): TaskEditFormState { |
| 54 | const frontmatter = readTaskEditFrontmatter({ |
| 55 | app: input.app, |
| 56 | taskPath: input.task.path, |
| 57 | logger: input.logger, |
| 58 | }); |
| 59 | |
| 60 | return buildTaskEditFormState({ |
| 61 | task: input.task, |
| 62 | details: input.details, |
| 63 | frontmatter, |
| 64 | settings: input.settings, |
| 65 | normalizeDetails: input.normalizeDetails, |
| 66 | }); |
| 67 | } |
| 68 | |
| 69 | export function buildTaskEditFormState(input: TaskEditFormStateInput): TaskEditFormState { |
| 70 | const rawTags = input.task.tags || []; |
no test coverage detected