diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-14 21:39:30 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-14 21:39:30 +0800 |
| commit | 54b5567d6f1b1adaa6ada6a26faba0c5c492b7f3 (patch) | |
| tree | 407940ef4697e4b5eb2bf7384f26b6ec5e570a80 /src/cmds/converter/version_in_out.rs | |
| parent | 17e7b28f162b3ed75683948144237ee17f81f7a5 (diff) | |
Add version command with banner and compile info display
Diffstat (limited to 'src/cmds/converter/version_in_out.rs')
| -rw-r--r-- | src/cmds/converter/version_in_out.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/cmds/converter/version_in_out.rs b/src/cmds/converter/version_in_out.rs new file mode 100644 index 0000000..34d243b --- /dev/null +++ b/src/cmds/converter/version_in_out.rs @@ -0,0 +1,20 @@ +use crate::cmds::{ + collect::compile_info::JVCompileInfoCollect, r#in::version::JVVersionInput, + out::version::JVVersionOutput, +}; + +pub struct JVVersionInputOutputConverter; + +impl JVVersionInputOutputConverter { + pub fn merge_to_output( + input: JVVersionInput, + collect: JVCompileInfoCollect, + ) -> JVVersionOutput { + JVVersionOutput { + show_compile_info: input.show_compile_info, + show_banner: input.show_banner, + compile_info: collect.compile_info, + compile_info_core: collect.compile_info_core, + } + } +} |
