task-track 0.7.0

A JJ workspace-based task and TODO management CLI tool
Documentation
1
2
3
4
5
6
7
8
9
10
//! Application state persistence port.

use crate::utils::Result;

/// Read/write session state stored in SQLite `app_state`.
pub trait AppStateStore {
    fn get_current_task_id(&self) -> Result<Option<i64>>;
    fn set_current_task_id(&self, task_id: i64) -> Result<()>;
    fn clear_current_task_id(&self) -> Result<()>;
}