MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / taskCreateHandler

Function taskCreateHandler

src/cli/handlers/ant.ts:16–29  ·  view source on GitHub ↗
(
  subject: string,
  opts: { description?: string; list?: string },
)

Source from the content-addressed store, hash-verified

14// ─── Group C: Task CRUD ──────────────────────────────────────────────────────
15
16export async function taskCreateHandler(
17 subject: string,
18 opts: { description?: string; list?: string },
19): Promise<void> {
20 const listId = opts.list || DEFAULT_LIST
21 const id = await createTask(listId, {
22 subject,
23 description: opts.description || '',
24 status: 'pending',
25 blocks: [],
26 blockedBy: [],
27 })
28 console.log(`Created task ${id}: ${subject}`)
29}
30
31export async function taskListHandler(opts: {
32 list?: string

Callers 1

runFunction · 0.85

Calls 1

createTaskFunction · 0.85

Tested by

no test coverage detected