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,
errors::{CmdExecuteError, CmdPrepareError, CmdRenderError},
renderer::{JVRenderResult, JVResultRenderer},
};
pub struct JVUnknownCommand;
#[derive(Parser, Debug)]
pub struct JVUnknownArgument;
pub struct JVUnknownInput;
#[derive(Serialize)]
pub struct JVUnknownOutput;
impl JVCommand<JVUnknownArgument, JVUnknownInput, JVUnknownOutput, JVStatusRenderer>
for JVUnknownCommand
{
async fn prepare(
_args: JVUnknownArgument,
_ctx: JVCommandContext,
) -> Result<JVUnknownInput, CmdPrepareError> {
todo!()
}
async fn exec(_args: JVUnknownInput) -> Result<JVUnknownOutput, CmdExecuteError> {
todo!()
}
fn get_help_str() -> String {
"".to_string()
}
}
pub struct JVStatusRenderer;
impl JVResultRenderer<JVUnknownOutput> for JVStatusRenderer {
async fn render(_data: &JVUnknownOutput) -> Result<JVRenderResult, CmdRenderError> {
todo!()
}
}
|