doist 0.4.0

doist is an unofficial command line app for interacting with the Todoist API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::api::rest::{FullLabel, Gateway};
use color_eyre::Result;

#[derive(clap::Parser, Debug)]
pub struct Params {}

pub async fn list(_params: Params, gw: &Gateway) -> Result<()> {
    let labels = gw.labels().await?;
    for label in labels {
        println!("{}", &FullLabel(&label));
    }
    Ok(())
}