pidge 0.4.5

A fast CLI for e-mail and calendar
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Top-level dispatch for `pidge contacts <subcommand>`.

use anyhow::Result;

use crate::cli::ContactsCommands;

pub async fn run(command: ContactsCommands, json: bool) -> Result<()> {
    match command {
        ContactsCommands::Refresh { days, account } => {
            crate::commands::contacts_refresh::run(days, account, json).await
        }
        ContactsCommands::Find { query, limit } => {
            crate::commands::contacts_find::run(query, limit, json).await
        }
    }
}