MCPcopy Create free account
hub / github.com/CodeForBreakfast/eventsourcing / completeTodo

Function completeTodo

examples/todo-app/src/cli.ts:140–146  ·  view source on GitHub ↗
(todoId: TodoId)

Source from the content-addressed store, hash-verified

138 );
139
140const completeTodo = (todoId: TodoId) =>
141 executeCommand(
142 todoId,
143 TodoAggregateRoot.commands.complete(),
144 `✓ Completed TODO: ${todoId}`,
145 `⚠ TODO ${todoId} is already completed`
146 );
147
148const uncompleteTodo = (todoId: TodoId) =>
149 executeCommand(

Callers 1

cli.tsFile · 0.85

Calls 1

executeCommandFunction · 0.85

Tested by

no test coverage detected