Function
taskGetHandler
(
id: string,
opts: { list?: string },
)
Source from the content-addressed store, hash-verified
| 58 | } |
| 59 | |
| 60 | export async function taskGetHandler( |
| 61 | id: string, |
| 62 | opts: { list?: string }, |
| 63 | ): Promise<void> { |
| 64 | const listId = opts.list || DEFAULT_LIST |
| 65 | const task = await getTask(listId, id) |
| 66 | if (!task) { |
| 67 | console.error(`Task not found: ${id}`) |
| 68 | process.exitCode = 1 |
| 69 | return |
| 70 | } |
| 71 | console.log(JSON.stringify(task, null, 2)) |
| 72 | } |
| 73 | |
| 74 | export async function taskUpdateHandler( |
| 75 | id: string, |
Tested by
no test coverage detected