Expand description
§oflow
A focused todo CLI library.
oflow provides both a command-line interface and a Rust library for managing
todo items backed by SQLite. Use TodoManager as the high-level API, or
work directly with TodoList and Todo for lower-level control.
§Quick Start
use oflow::TodoManager;
#[tokio::main]
async fn main() -> color_eyre::Result<()> {
let mut manager = TodoManager::new().await?;
manager.add("Buy milk").await?;
manager.finish("Buy milk").await?;
manager.clean().await?;
for todo in manager.list() {
println!("{}", todo);
}
Ok(())
}§Modules
Re-exports§
pub use commands::Cli;pub use commands::Commands;pub use commands::execute_command;pub use models::Todo;pub use models::TodoList;
Modules§
Structs§
- Todo
Manager - A high-level manager for Todo operations.