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::subcmd::{
cmd::{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> {
todo!()
}
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!()
}
}
|