taskter 0.1.0

Taskter is a terminal Kanban board CLI tool built with Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use anyhow::Result;
use serde_json::Value;

use crate::agent::FunctionDeclaration;
use crate::store;

const DECL_JSON: &str = include_str!("../../tools/list_tasks.json");

pub fn declaration() -> FunctionDeclaration {
    serde_json::from_str(DECL_JSON).expect("invalid list_tasks.json")
}

pub fn execute(_args: &Value) -> Result<String> {
    let board = store::load_board()?;
    Ok(serde_json::to_string_pretty(&board.tasks)?)
}