aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/zot/command/contact/list.rs
blob: ee5f1670ae8252376fbee8ae680e97e3c0ea31fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * SPDX-FileCopyrightText: 2024 Eilertsens Kodeknekkeri
 * SPDX-FileCopyrightText: 2024 Harald Eilertsen
 *
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

use std::error::Error;
use zotapi::ZotApi;

pub struct ContactListCmd {
}

impl ContactListCmd {
    pub async fn run(&self, client: ZotApi) -> Result<(), Box<dyn Error + 'static>> {
        let r = client.abook_list().await?;
        println!("{}", r);

        Ok(())
    }
}