Expand description
Task categorization and organization system.
Provides tag-based organization for tasks, including many-to-many relationships and color-coded categorization. Tag-based task categorization and organization system.
Provides functionality for managing tags that can be associated with tasks for categorization, filtering, and organization purposes. Supports many-to-many relationships between tasks and tags.
§Features
- Tag Management: Create, update, delete, and query tag definitions
- Color Coding: Optional color assignment for visual task organization
- Task Association: Link tags to tasks with automatic relationship management
- Bulk Operations: Efficient creation and association of multiple tags
- Search & Filter: Find tags by name and retrieve tasks by tag association
§Usage
use kasl::db::tags::{Tags, Tag};
let mut tags = Tags::new()?;
let urgent_tag = Tag::new("urgent".to_string(), Some("red".to_string()));
let tag_id = tags.create(&urgent_tag)?;
let task_id = 1;
tags.add_tag_to_task(task_id, tag_id)?;