blob: a3085172d7e2e8e513ff91b1bd9684ec90868739 (
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 zotapi::ZotApi;
use std::error::Error;
pub struct ChannelListCmd {
}
impl ChannelListCmd {
pub async fn run(&self, client: ZotApi) -> Result<(), Box<(dyn Error + 'static)>> {
for ch in client.channel_list().await? {
println!("{}", ch);
}
Ok(())
}
}
|