tod 0.15.0

An unofficial Todoist command-line client
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use clap::{Parser, Subcommand};

use crate::reminders;
use crate::{config::Config, errors::Error};

#[derive(Subcommand, Debug, Clone)]
pub enum ReminderCommands {
    #[clap(alias = "l")]
    /// (l) List all reminders from the API
    List(List),
}

#[derive(Parser, Debug, Clone)]
pub struct List {}

pub async fn list(config: &mut Config, _args: &List) -> Result<String, Error> {
    reminders::list(config).await
}