aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/zot/command/channel/export.rs
blob: ad006de915c9eb37578c3d94f5159d1523cb0301 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * 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 ChannelExportCmd {
}

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