aboutsummaryrefslogblamecommitdiffstats
path: root/src/bin/zot/command/version.rs
blob: a184247a2ae56ca448453ac5a21c542e25e64126 (plain) (tree)


















                                                                                     
/*
 * 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(())
    }
}