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
use crate::domain::{error::ChronError, repository::TaskRepository};

pub async fn archive_task(repo: &impl TaskRepository, id: &str) -> Result<(), ChronError> {
    repo.archive_task(id).await
}

pub async fn unarchive_task(repo: &impl TaskRepository, id: &str) -> Result<(), ChronError> {
    repo.unarchive_task(id).await
}