aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/zot/command/version.rs
blob: a184247a2ae56ca448453ac5a21c542e25e64126 (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 std::error::Error;
use zotapi::ZotApi;

pub struct VersionCmd {
}

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