Skip to main content

Module templates

Module templates 

Source
Expand description

Reusable task template system.

Manages pre-defined task templates for common activities, enabling quick task creation from standardized patterns. Task template system for efficient task creation and workflow standardization.

Provides functionality for managing reusable task templates that streamline the creation of frequently used tasks. Templates store predefined task configurations including names, descriptions, and completion status.

§Features

  • Template Management: Create, update, delete, and query template definitions
  • Search Capabilities: Find templates by name or task content with fuzzy matching
  • Workflow Standardization: Consistent task creation for repetitive workflows
  • Content Reuse: Store commonly used task patterns for rapid deployment
  • Validation Support: Ensure template uniqueness and data integrity

§Usage

use kasl::db::templates::{Templates, TaskTemplate};

let mut templates = Templates::new()?;
let template = TaskTemplate::new(
    "daily-standup".to_string(),
    "Prepare for daily standup".to_string(),
    "Review yesterday's work and plan today".to_string(),
    50
);
templates.create(&template)?;

Structs§

TaskTemplate
Represents a reusable task template with predefined values.
Templates
Database manager for task template operations and lifecycle management.