summaryrefslogtreecommitdiff
path: root/src/cmd/cmds/status.rs
blob: bbc78e8740941e6cdbec91949e8618de3cbb5c3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
use clap::Parser;
use serde::Serialize;

use crate::cmd::{
    cmd_system::{JVCommand, JVCommandContext},
    errors::{CmdExecuteError, CmdPrepareError, CmdRenderError},
    renderer::{JVRenderResult, JVResultRenderer},
};

pub struct JVStatusCommand;

#[derive(Parser, Debug)]
pub struct JVStatusArgument;

pub struct JVStatusInput;

#[derive(Serialize)]
pub struct JVStatusOutput;

impl JVCommand<JVStatusArgument, JVStatusInput, JVStatusOutput, JVStatusRenderer>
    for JVStatusCommand
{
    async fn prepare(
        _args: JVStatusArgument,
        _ctx: JVCommandContext,
    ) -> Result<JVStatusInput, CmdPrepareError> {
        Ok(JVStatusInput)
    }

    async fn exec(args: JVStatusInput) -> Result<JVStatusOutput, CmdExecuteError> {
        todo!()
    }

    fn get_help_str() -> String {
        "".to_string()
    }
}

pub struct JVStatusRenderer;

impl JVResultRenderer<JVStatusOutput> for JVStatusRenderer {
    async fn render(data: &JVStatusOutput) -> Result<JVRenderResult, CmdRenderError> {
        todo!()
    }
}