addTask
codebolt.taskplaner.addTask(task: string): Promise
Adds a task to the system via WebSocket.
Parameters
Name | Type | Description |
---|---|---|
task | string | The task description to be added. |
Example
const addResult = await codebolt.taskplaner.addTask('Complete project documentation');
console.log('✅ Task added successfully', addResult);
// Adding multiple tasks
const tasks = [
'Review code changes',
'Update unit tests',
'Fix bug in authentication module',
'Prepare release notes'
];
for (const task of tasks) {
await codebolt.taskplaner.addTask(task);
}
console.log('✅ Multiple tasks added successfully');