chronis 0.5.3

Event-sourced task CLI powered by the AllSource embedded database (all-source.xyz)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::domain::{error::ChronError, repository::TaskRepository, task::Task};

#[cfg_attr(feature = "hotpath", hotpath::measure)]
pub fn list_tasks(
    repo: &impl TaskRepository,
    status: Option<&str>,
) -> Result<Vec<Task>, ChronError> {
    repo.list_tasks(status)
}

pub fn ready_tasks(repo: &impl TaskRepository) -> Result<Vec<Task>, ChronError> {
    repo.ready_tasks()
}