diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-01-22 08:40:59 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-01-22 08:40:59 +0800 |
| commit | 53c26d656f975f93319dd432e409c1ea740ce06d (patch) | |
| tree | 22796b4e438655868e02954e5d2770ed676ccbb7 /src/subcmd/cmds/template.rs | |
| parent | aca8b408755f9041da9ee083c625de2a8d8c6785 (diff) | |
Rename subcmd module to cmd and update references
Diffstat (limited to 'src/subcmd/cmds/template.rs')
| -rw-r--r-- | src/subcmd/cmds/template.rs | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/subcmd/cmds/template.rs b/src/subcmd/cmds/template.rs deleted file mode 100644 index 8874121..0000000 --- a/src/subcmd/cmds/template.rs +++ /dev/null @@ -1,45 +0,0 @@ -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!() - } -} |
