From 626536ce51975b051fea087620bc1eb7f6bc69d3 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 23 Jan 2026 04:49:34 +0800 Subject: Reorganize project structure into systems and assets --- templates/command.rs.template | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 templates/command.rs.template (limited to 'templates/command.rs.template') diff --git a/templates/command.rs.template b/templates/command.rs.template new file mode 100644 index 0000000..1c56c29 --- /dev/null +++ b/templates/command.rs.template @@ -0,0 +1,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 + for JVUnknownCommand +{ + async fn prepare( + _args: JVUnknownArgument, + _ctx: JVCommandContext, + ) -> Result { + todo!() + } + + async fn exec(_input: JVUnknownInput) -> Result { + todo!() + } + + fn get_help_str() -> String { + "".to_string() + } +} + +pub struct JVStatusRenderer; + +impl JVResultRenderer for JVStatusRenderer { + async fn render(_data: &JVUnknownOutput) -> Result { + todo!() + } +} -- cgit